Skip to content

Commit ecf6f1b

Browse files
authored
Update items section in reference
Make clear that items must be definitions, and add missing extern block
1 parent 2f8fd53 commit ecf6f1b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/doc/reference.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -740,13 +740,14 @@ There are several kinds of item:
740740
* [`extern crate` declarations](#extern-crate-declarations)
741741
* [`use` declarations](#use-declarations)
742742
* [modules](#modules)
743-
* [functions](#functions)
743+
* [function definitions](#functions)
744+
* [`extern` blocks](#external-blocks)
744745
* [type definitions](grammar.html#type-definitions)
745-
* [structs](#structs)
746-
* [enumerations](#enumerations)
746+
* [struct definitions](#structs)
747+
* [enumeration definitions](#enumerations)
747748
* [constant items](#constant-items)
748749
* [static items](#static-items)
749-
* [traits](#traits)
750+
* [trait definitions](#traits)
750751
* [implementations](#implementations)
751752

752753
Some items form an implicit scope for the declaration of sub-items. In other

0 commit comments

Comments
 (0)