about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/rust.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 3254b3398a5..b64bb7eb5f9 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -1929,11 +1929,11 @@ the unary copy operator is typically only used to cause an argument to a functio
 An example of a copy expression:
 
 ~~~~
-fn mutate(vec: &[mut int]) {
+fn mutate(vec: ~[mut int]) {
    vec[0] = 10;
 }
 
-let v = &[mut 1,2,3];
+let v = ~[mut 1,2,3];
 
 mutate(copy v);   // Pass a copy