diff --git a/doc/rust.md b/doc/rust.md index 3847b0b97558..287dcb950f77 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -441,11 +441,11 @@ expression context, the final namespace qualifier is omitted. Two examples of paths with type arguments: ~~~~ -# use std::oldmap; +# use core::hashmap::linear::LinearMap; # fn f() { # fn id(t: T) -> T { t } -type t = oldmap::HashMap; // Type arguments used in a type expression -let x = id::(10); // Type arguments used in a call expression +type t = LinearMap; // Type arguments used in a type expression +let x = id::(10); // Type arguments used in a call expression # } ~~~~ diff --git a/doc/tutorial.md b/doc/tutorial.md index 30e230b67b0d..8c0f5f1ebdf6 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1829,8 +1829,8 @@ illegal to copy and pass by value. Generic `type`, `struct`, and `enum` declarations follow the same pattern: ~~~~ -# use std::oldmap::HashMap; -type Set = HashMap; +# use core::hashmap::linear::LinearMap; +type Set = LinearMap; struct Stack { elements: ~[T]