about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-10-11 19:30:43 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-10-11 19:30:43 -0700
commit588d97d80ec7a36a3a83aa40c55df1a53c74d7e3 (patch)
tree76e8f0ed8942b9359882580afc7aa8b92936a66e
parent13ea16152d34368c44da05960135ba58ec622cda (diff)
downloadrust-588d97d80ec7a36a3a83aa40c55df1a53c74d7e3.tar.gz
rust-588d97d80ec7a36a3a83aa40c55df1a53c74d7e3.zip
manual: fix accidentally broken test.
-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