Skip to content

Commit

Permalink
Fix a code example to use the correct code tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jun 27, 2024
1 parent a1b095a commit 70e746d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attributes/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ All lint attributes support an additional `reason` parameter, to give context wh
a certain attribute was added. This reason will be displayed as part of the lint
message if the lint is emitted at the defined level.

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

0 comments on commit 70e746d

Please sign in to comment.