We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8f83f commit fec28b2Copy full SHA for fec28b2
src/doc/style-guide/src/advice.md
@@ -25,9 +25,9 @@ if y {
25
* Local variables shall be `snake_case`,
26
* Macro names shall be `snake_case`,
27
* Constants (`const`s and immutable `static`s) shall be `SCREAMING_SNAKE_CASE`.
28
- * When a name is forbidden because it is a reserved word (e.g., `crate`), use a
29
- trailing underscore to make the name legal (e.g., `crate_`), or use raw
30
- identifiers if possible.
+ * When a name is forbidden because it is a reserved word (such as `crate`),
+ either use a raw identifier (`r#crate`) or use a trailing underscore
+ (`crate_`). Don't misspell the word (`krate`).
31
32
### Modules
33
0 commit comments