Skip to content

Commit cad6733

Browse files
committed
Remove mention of res_item, add const_item. Reword a bit.
1 parent ff37c65 commit cad6733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,14 +681,14 @@ and no [constraints](#constraints). Its return type must be [`nil`](#primitive-t
681681

682682
# Items and attributes
683683

684-
A crate is a collection of [items](#items), each of which may have some number
685-
of [attributes](#attributes) attached to it.
684+
Crates contain [items](#items),
685+
each of which may have some number of [attributes](#attributes) attached to it.
686686

687687
## Items
688688

689689
~~~~~~~~ {.ebnf .gram}
690690
item : mod_item | fn_item | type_item | enum_item
691-
| res_item | trait_item | impl_item | foreign_mod_item ;
691+
| const_item | trait_item | impl_item | foreign_mod_item ;
692692
~~~~~~~~
693693

694694
An _item_ is a component of a crate; some module items can be defined in crate

0 commit comments

Comments
 (0)