Skip to content

Commit fa6a787

Browse files
camelidjyn514
authored andcommitted
Fix typo, clarify backtick wording, and use inline code
1 parent 2f44729 commit fa6a787

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/diagnostics.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LL | more code
3838
- Primary and secondary spans underlying the users' code. These spans can
3939
optionally contain one or more labels.
4040
- Primary spans should have enough text to describe the problem in such a
41-
way that if it where the only thing being displayed (for example, in an
41+
way that if it were the only thing being displayed (for example, in an
4242
IDE) it would still make sense. Because it is "spatially aware" (it
4343
points at the code), it can generally be more succinct than the error
4444
message.
@@ -61,7 +61,7 @@ error: the fobrulator needs to be krontrificated
6161
```
6262

6363
When code or an identifier must appear in a message or label, it should be
64-
surrounded with single acute accents \`.
64+
surrounded with backticks: `` `foo.bar` ``.
6565

6666
### Error explanations
6767

@@ -449,8 +449,8 @@ The possible values of [`Applicability`][appl] are:
449449

450450
- `MachineApplicable`: Can be applied mechanically.
451451
- `HasPlaceholders`: Cannot be applied mechanically because it has placeholder
452-
text in the suggestions. For example, "Try adding a type: \`let x:
453-
\<type\>\`".
452+
text in the suggestions. For example: ``try adding a type: `let x:
453+
<type>` ``.
454454
- `MaybeIncorrect`: Cannot be applied mechanically because the suggestion may
455455
or may not be a good one.
456456
- `Unspecified`: Cannot be applied mechanically because we don't know which

0 commit comments

Comments
 (0)