Skip to content

Commit 70e746d

Browse files
committed
Fix a code example to use the correct code tags.
1 parent a1b095a commit 70e746d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes/diagnostics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ All lint attributes support an additional `reason` parameter, to give context wh
9292
a certain attribute was added. This reason will be displayed as part of the lint
9393
message if the lint is emitted at the defined level.
9494

95-
```edition2015,fail
95+
```rust,edition2015,compile_fail
9696
// `keyword_idents` is allowed by default. Here we deny it to
97-
// avoid migration of identifies when we update the edition.
97+
// avoid migration of identifiers when we update the edition.
9898
#![deny(
9999
keyword_idents,
100100
reason = "we want to avoid these idents to be future compatible"

0 commit comments

Comments
 (0)