Skip to content

Commit 588d97d

Browse files
committed
manual: fix accidentally broken test.
1 parent 13ea161 commit 588d97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,11 +1929,11 @@ the unary copy operator is typically only used to cause an argument to a functio
19291929
An example of a copy expression:
19301930

19311931
~~~~
1932-
fn mutate(vec: &[mut int]) {
1932+
fn mutate(vec: ~[mut int]) {
19331933
vec[0] = 10;
19341934
}
19351935
1936-
let v = &[mut 1,2,3];
1936+
let v = ~[mut 1,2,3];
19371937
19381938
mutate(copy v); // Pass a copy
19391939

0 commit comments

Comments
 (0)