Skip to content

Commit e9618ce

Browse files
committed
Small doc fixes
1 parent b9b396c commit e9618ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ mod math {
831831
}
832832
```
833833

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
835835
the same name as a module in scope is forbidden: that is, a type definition,
836836
trait, struct, enumeration, or type parameter can't shadow the name of a module
837837
in scope, or vice versa.
@@ -870,8 +870,8 @@ view_item : extern_crate_decl | use_decl ;
870870
```
871871

872872
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:
875875

876876
* [`extern crate` declarations](#extern-crate-declarations)
877877
* [`use` declarations](#use-declarations)
@@ -896,7 +896,7 @@ external crate when it was compiled. If no `crateid` is provided, a default
896896
`name` attribute is assumed, equal to the `ident` given in the
897897
`extern_crate_decl`.
898898

899-
Four examples of `extern crate` declarations:
899+
Three examples of `extern crate` declarations:
900900

901901
```{.ignore}
902902
extern crate pcre;

0 commit comments

Comments
 (0)