File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ mod math {
831
831
}
832
832
```
833
833
834
- Modules and types share the same namespace. Declaring a named type that has
834
+ Modules and types share the same namespace. Declaring a named type with
835
835
the same name as a module in scope is forbidden: that is, a type definition,
836
836
trait, struct, enumeration, or type parameter can't shadow the name of a module
837
837
in scope, or vice versa.
@@ -870,8 +870,8 @@ view_item : extern_crate_decl | use_decl ;
870
870
```
871
871
872
872
A view item manages the namespace of a module. View items do not define new
873
- items, but rather, simply change other items' visibility. There are several
874
- kinds of view item :
873
+ items, but rather, simply change other items' visibility. There are two
874
+ kinds of view items :
875
875
876
876
* [ ` extern crate ` declarations] ( #extern-crate-declarations )
877
877
* [ ` use ` declarations] ( #use-declarations )
@@ -896,7 +896,7 @@ external crate when it was compiled. If no `crateid` is provided, a default
896
896
` name ` attribute is assumed, equal to the ` ident ` given in the
897
897
` extern_crate_decl ` .
898
898
899
- Four examples of ` extern crate ` declarations:
899
+ Three examples of ` extern crate ` declarations:
900
900
901
901
``` {.ignore}
902
902
extern crate pcre;
You can’t perform that action at this time.
0 commit comments