Skip to content
Prev Previous commit
Next Next commit
missing commas
  • Loading branch information
tshepang committed Aug 12, 2022
commit b2e6a285b0afb03f25ac85d9252031fdcfe6c4d5
7 changes: 4 additions & 3 deletions src/diagnostics/diagnostic-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ A new diagnostic item can be added with these two steps:
[*Naming Conventions*](#naming-conventions).

2. As of <!-- date-check --> February 2022, diagnostic items in code are
accessed via symbols in [`rustc_span::symbol::sym`]. To add your newly
created diagnostic item simply open the module file and add the name (In
this case `Cat`) at the correct point in the list.
accessed via symbols in [`rustc_span::symbol::sym`].
To add your newly-created diagnostic item,
simply open the module file,
and add the name (In this case `Cat`) at the correct point in the list.

Now you can create a pull request with your changes. :tada: (Note that when
using diagnostic items in other projects like Clippy, it might take some time
Expand Down