Skip to content

Commit

Permalink
diagnostics: lists should use the Oxford comma
Browse files Browse the repository at this point in the history
we encountered this in rust-lang/rust#131038

kinda felt like an unspoken rule so here's a more concrete
clarification.
  • Loading branch information
Barrett authored and tshepang committed Nov 5, 2024
1 parent 6a5accd commit 36f61df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ use an error-level lint instead of a fixed error.
compiler messages are an important learning tool.
- When talking about the compiler, call it `the compiler`, not `Rust` or
`rustc`.
- Use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma) when
writing lists of items.

### Lint naming

Expand Down

0 comments on commit 36f61df

Please sign in to comment.