style-guide: Define what an item is

This commit is contained in:
Josh Triplett 2023-06-22 14:06:15 -07:00
parent 5d637219e4
commit f972e09f76

View File

@ -1,5 +1,10 @@
## Items
Items consist of the set of things permitted at the top level of a module.
However, Rust also allows some items to appear within some other types of
items, such as within a function. The same formatting conventions apply whether
an item appears at module level or within another item.
`extern crate` statements must be first in a file. They must be ordered
alphabetically.