forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Note style guide
Lenny222 edited this page Jan 16, 2012
·
21 revisions
These are coding guidelines for the Rust compiler and standard library.
Rust code in error messages should be enclosed in backquotes.
Examples:
Found `int` but expected `str`
[Interface](Note Interfaces) names should be verbs.
Examples:
iterate
The names of simple boolean predicates should start with "is_" or similarly be expressed using a "small question word".
The notable exception are generally established predicate names like "lt", "ge", etc.
Examples:
is_not_empty