manual: fix accidentally broken test.

This commit is contained in:
Graydon Hoare 2012-10-11 19:30:43 -07:00
parent 13ea16152d
commit 588d97d80e
1 changed files with 2 additions and 2 deletions

View File

@ -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