Skip to content
Prev Previous commit
Next Next commit
fix anchor link
  • Loading branch information
tshepang committed Aug 12, 2022
commit 8696894bae61a5a34dd75087e5c53272e390663d
10 changes: 6 additions & 4 deletions src/diagnostics/diagnostic-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ errors during tests. A definition often looks like this:
struct Penguin;
```

Diagnostic items are usually only added to traits, types and standalone
functions. If the goal is to check for an associated type or method, please use
the diagnostic item of the item and reference [*How To Use Diagnostic
Items*](#how-to-use-diagnostic-items).
Diagnostic items are usually only added to traits,
types,
and standalone functions.
If the goal is to check for an associated type or method,
please use the diagnostic item of the item and reference
[*Using Diagnostic Items*](#using-diagnostic-items).

## Adding diagnostic items
A new diagnostic item can be added with these two steps:
Expand Down