Skip to content

Commit 21d7335

Browse files
authored
Merge pull request #151 from humanenginuity/master
added contractions under the same umbrella as acronyms
2 parents 7706f73 + 14ab583 commit 21d7335

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/naming.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ traits) and `snake_case` for "value-level" constructs. More precisely:
2828
| Lifetimes | short `lowercase`, usually a single letter: `'a`, `'de`, `'src` |
2929
| Features | [unclear](https://github.com/rust-lang-nursery/api-guidelines/issues/101) but see [C-FEATURE] |
3030

31-
In `CamelCase`, acronyms count as one word: use `Uuid` rather than `UUID`. In
32-
`snake_case`, acronyms are lower-cased: `is_xid_start`.
31+
In `CamelCase`, acronyms and contractions of compound words count as one word: use `Uuid` rather than `UUID`, `Usize` rather than `USize` or `Stdin` rather than `StdIn`. In `snake_case`, acronyms and contractions are lower-cased: `is_xid_start`.
3332

3433
In `snake_case` or `SCREAMING_SNAKE_CASE`, a "word" should never consist of a
3534
single letter unless it is the last "word". So, we have `btree_map` rather than

0 commit comments

Comments
 (0)