Skip to content

Commit

Permalink
manual: fix accidentally broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Oct 12, 2012
1 parent 13ea161 commit 588d97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 588d97d

Please sign in to comment.