Skip to content

Commit c81b18c

Browse files
authored
Update RFC 0430 to allow underscores between numbers in CamelCase names
See rust-lang#46907
1 parent 74d4623 commit c81b18c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/0430-finalizing-naming-conventions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ precisely, the proposed (and mostly followed) conventions are:
4646
In `UpperCamelCase`, acronyms count as one word: use `Uuid` rather than
4747
`UUID`. In `snake_case`, acronyms are lower-cased: `is_xid_start`.
4848

49+
In `UpperCamelCase` names multiple numbers can be separated by a `_`
50+
for clarity: `Windows10_1709` instead of `Windows101709`.
51+
4952
In `snake_case` or `SCREAMING_SNAKE_CASE`, a "word" should never
5053
consist of a single letter unless it is the last "word". So, we have
5154
`btree_map` rather than `b_tree_map`, but `PI_2` rather than `PI2`.

0 commit comments

Comments
 (0)