diff --git a/doc/rust.md b/doc/rust.md index e9cb59f05b1..2a99acdef41 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -798,7 +798,7 @@ extern mod ruststd (name = "std"); // linking to 'std' under another name ##### Use declarations ~~~~~~~~ {.ebnf .gram} -use_decl : "use" ident [ '=' path +use_decl : "pub"? "use" ident [ '=' path | "::" path_glob ] ; path_glob : ident [ "::" path_glob ] ?