Skip to content

Commit

Permalink
Replaced @list with ~List in Rust's recursive example
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Feb 27, 2014
1 parent 68a92c5 commit 4c553af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/rust.md
Expand Up @@ -3256,10 +3256,10 @@ An example of a *recursive* type and its use:
~~~~
enum List<T> {
Nil,
Cons(T, @List<T>)
Cons(T, ~List<T>)
}
let a: List<int> = Cons(7, @Cons(13, @Nil));
let a: List<int> = Cons(7, ~Cons(13, ~Nil));
~~~~

### Pointer types
Expand Down

0 comments on commit 4c553af

Please sign in to comment.