Skip to content

Commit 91d13c3

Browse files
committed
Document the edition2024 code block attribute
1 parent ce8d812 commit 91d13c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guide/src/format/configuration/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ edition = "2015" # the default edition for code blocks
7373

7474
- **edition**: Rust edition to use by default for the code snippets. Default
7575
is `"2015"`. Individual code blocks can be controlled with the `edition2015`,
76-
`edition2018` or `edition2021` annotations, such as:
76+
`edition2018`, `edition2021` or `edition2024` annotations, such as:
7777

7878
~~~text
7979
```rust,edition2015

guide/src/format/mdbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ These use the same attributes as [rustdoc attributes], with a few additions:
122122
* `no_run` --- The code is compiled when tested, but it is not run.
123123
The play button is also not shown.
124124
* `compile_fail` --- The code should fail to compile.
125-
* `edition2015`, `edition2018`, `edition2021` --- Forces the use of a specific Rust edition.
125+
* `edition2015`, `edition2018`, `edition2021`, `edition2024` --- Forces the use of a specific Rust edition.
126126
See [`rust.edition`] to set this globally.
127127

128128
[`mdbook test`]: ../cli/test.md

0 commit comments

Comments
 (0)