File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ LL | more code
26
26
| ^^^^
27
27
```
28
28
29
- - Description (` error ` , ` warning ` , etc.).
29
+ - Level (` error ` , ` warning ` , etc.). It indicates the severity of the message.
30
+ (See [ diagnostic levels] ( #diagnostic-levels ) )
30
31
- Code (for example, for "mismatched types", it is ` E0308 ` ). It helps
31
32
users get more information about the current error through an extended
32
- description of the problem in the error code index.
33
+ description of the problem in the error code index. Diagnostics created
34
+ by lints don't have a code in the emitted message.
33
35
- Message. It is the main description of the problem. It should be general and
34
36
able to stand on its own, so that it can make sense even in isolation.
35
37
- Diagnostic window. This contains several things:
@@ -61,7 +63,11 @@ error: the fobrulator needs to be krontrificated
61
63
```
62
64
63
65
When code or an identifier must appear in a message or label, it should be
64
- surrounded with backticks: `` `foo.bar` `` .
66
+ surrounded with backticks:
67
+
68
+ ``` txt
69
+ error: the identifier `foo.bar` is invalid
70
+ ```
65
71
66
72
### Error explanations
67
73
You can’t perform that action at this time.
0 commit comments