doc: Remove mentions of oldmap::HashMap
This commit is contained in:
parent
e4c3d805a4
commit
31f6e64324
2 changed files with 5 additions and 5 deletions
|
@ -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:Copy>(t: T) -> T { t }
|
||||
type t = oldmap::HashMap<int,~str>; // Type arguments used in a type expression
|
||||
let x = id::<int>(10); // Type arguments used in a call expression
|
||||
type t = LinearMap<int,~str>; // Type arguments used in a type expression
|
||||
let x = id::<int>(10); // Type arguments used in a call expression
|
||||
# }
|
||||
~~~~
|
||||
|
||||
|
|
|
@ -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<T> = HashMap<T, ()>;
|
||||
# use core::hashmap::linear::LinearMap;
|
||||
type Set<T> = LinearMap<T, ()>;
|
||||
|
||||
struct Stack<T> {
|
||||
elements: ~[T]
|
||||
|
|
Loading…
Add table
Reference in a new issue