diff options
| author | bors <bors@rust-lang.org> | 2014-02-27 21:46:53 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-27 21:46:53 -0800 |
| commit | f203fc7daf8d598a7eacee1a135f2fd92dc6382e (patch) | |
| tree | d9519b932dd81fc44b4290554a7722d729d1fdc2 /src/doc | |
| parent | 700fd35fb9d448c5e1658c3cec9c1153c57cc802 (diff) | |
| parent | 4da6d041c268d58654d54b317288c940e5c623fd (diff) | |
auto merge of #12348 : brunoabinader/rust/libcollections-list-refactory, r=alexcrichton
This PR includes: - Create an iterator for ```List<T>``` called ```Items<T>```; - Move all list operations inside ```List<T>``` impl; - Removed functions that are already provided by ```Iterator``` trait; - Refactor on ```len()``` and ```is_empty``` using ```Container``` trait; - Bunch of minor fixes; A replacement for using @ is intended, but still in discussion. Closes #12344.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rust.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md index 9bc394abf5e..bb299b107c7 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -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 |
