Skip to content

Commit 706faa1

Browse files
authored
Update doc about code block edition attributes
1 parent cafc458 commit 706faa1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/doc/rustdoc/src/documentation-tests.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,8 @@ are added.
359359
# fn foo() {}
360360
```
361361

362-
`edition2018` tells `rustdoc` that the code sample should be compiled using
363-
the 2018 edition of Rust. Similarly, you can specify `edition2015` to compile
364-
the code with the 2015 edition.
362+
`edition2015`, `edition2018` and `edition2021` tell `rustdoc`
363+
that the code sample should be compiled using the respective edition of Rust.
365364

366365
```rust
367366
/// Only runs on the 2018 edition.

0 commit comments

Comments
 (0)