Skip to content

Commit f972e09

Browse files
committed
style-guide: Define what an item is
1 parent 5d63721 commit f972e09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/style-guide/src/items.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## Items
22

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

0 commit comments

Comments
 (0)