Skip to content

Commit

Permalink
Rollup merge of rust-lang#38130 - jethrogb:patch-3, r=steveklabnik
Browse files Browse the repository at this point in the history
Update items section in reference

Make clear that items must be definitions, and add missing extern block
  • Loading branch information
frewsxcv authored Dec 3, 2016
2 parents d6281fa + ecf6f1b commit 02ad965
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -740,13 +740,14 @@ There are several kinds of item:
* [`extern crate` declarations](#extern-crate-declarations)
* [`use` declarations](#use-declarations)
* [modules](#modules)
* [functions](#functions)
* [function definitions](#functions)
* [`extern` blocks](#external-blocks)
* [type definitions](grammar.html#type-definitions)
* [structs](#structs)
* [enumerations](#enumerations)
* [struct definitions](#structs)
* [enumeration definitions](#enumerations)
* [constant items](#constant-items)
* [static items](#static-items)
* [traits](#traits)
* [trait definitions](#traits)
* [implementations](#implementations)

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

0 comments on commit 02ad965

Please sign in to comment.