diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-03 15:29:58 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-03 15:56:00 -0800 |
| commit | 1b363f08e127f4df226dedc3422281dee691440d (patch) | |
| tree | 866f311789b927332d4145dcaa0fc818d8f20954 | |
| parent | a779e89a008b78616ae8edbde9e75c9265af29f7 (diff) | |
| parent | e9618ce70176f9fa4bde73dd947283bf07ab2c1f (diff) | |
| download | rust-1b363f08e127f4df226dedc3422281dee691440d.tar.gz rust-1b363f08e127f4df226dedc3422281dee691440d.zip | |
rollup merge of #18572 : cakebaker/small_doc_changes
| -rw-r--r-- | src/doc/reference.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 6f165b679a3..96d6bece230 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -831,7 +831,7 @@ mod math { } ``` -Modules and types share the same namespace. Declaring a named type that has +Modules and types share the same namespace. Declaring a named type with the same name as a module in scope is forbidden: that is, a type definition, trait, struct, enumeration, or type parameter can't shadow the name of a module in scope, or vice versa. @@ -870,8 +870,8 @@ view_item : extern_crate_decl | use_decl ; ``` A view item manages the namespace of a module. View items do not define new -items, but rather, simply change other items' visibility. There are several -kinds of view item: +items, but rather, simply change other items' visibility. There are two +kinds of view items: * [`extern crate` declarations](#extern-crate-declarations) * [`use` declarations](#use-declarations) @@ -896,7 +896,7 @@ external crate when it was compiled. If no `crateid` is provided, a default `name` attribute is assumed, equal to the `ident` given in the `extern_crate_decl`. -Four examples of `extern crate` declarations: +Three examples of `extern crate` declarations: ```{.ignore} extern crate pcre; |
