Skip to content

Commit

Permalink
style-guide: Define what an item is
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jun 22, 2023
1 parent 5d63721 commit f972e09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit f972e09

Please sign in to comment.