@@ -971,7 +971,7 @@ path_glob : ident [ "::" [ path_glob
971
971
| '*' ] ] ?
972
972
| '{' path_item [ ',' path_item ] * '}' ;
973
973
974
- path_item : ident | "mod " ;
974
+ path_item : ident | "self " ;
975
975
```
976
976
977
977
A _ use declaration_ creates one or more local name bindings synonymous with
@@ -991,15 +991,15 @@ Use declarations support a number of convenient shortcuts:
991
991
* Binding all paths matching a given prefix, using the asterisk wildcard syntax
992
992
` use a::b::*; `
993
993
* Simultaneously binding a list of paths differing only in their final element
994
- and their immediate parent module, using the ` mod ` keyword, such as
995
- ` use a::b::{mod , c, d}; `
994
+ and their immediate parent module, using the ` self ` keyword, such as
995
+ ` use a::b::{self , c, d}; `
996
996
997
997
An example of ` use ` declarations:
998
998
999
999
```
1000
1000
use std::iter::range_step;
1001
1001
use std::option::Option::{Some, None};
1002
- use std::collections::hash_map::{mod , HashMap};
1002
+ use std::collections::hash_map::{self , HashMap};
1003
1003
1004
1004
fn foo<T>(_: T){}
1005
1005
fn bar(map1: HashMap<String, uint>, map2: hash_map::HashMap<String, uint>){}
0 commit comments