We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13ea161 commit 588d97dCopy full SHA for 588d97d
doc/rust.md
@@ -1929,11 +1929,11 @@ the unary copy operator is typically only used to cause an argument to a functio
1929
An example of a copy expression:
1930
1931
~~~~
1932
-fn mutate(vec: &[mut int]) {
+fn mutate(vec: ~[mut int]) {
1933
vec[0] = 10;
1934
}
1935
1936
-let v = &[mut 1,2,3];
+let v = ~[mut 1,2,3];
1937
1938
mutate(copy v); // Pass a copy
1939
0 commit comments