about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-06 00:11:51 +0100
committerGitHub <noreply@github.com>2021-12-06 00:11:51 +0100
commitd6ff1326e7ff5841df8a2518e4a995e3db7040f1 (patch)
treefac5de8c1bd3da19fd8103863d03b078e55b6512 /src
parent971f4692362400d48732da91884be047260ff17d (diff)
parent706faa10aa63fd6d0972d76fbd6c40a976a38766 (diff)
downloadrust-d6ff1326e7ff5841df8a2518e4a995e3db7040f1.tar.gz
rust-d6ff1326e7ff5841df8a2518e4a995e3db7040f1.zip
Rollup merge of #91554 - r00ster91:patch-3, r=GuillaumeGomez
Update doc about code block edition attributes
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustdoc/src/documentation-tests.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doc/rustdoc/src/documentation-tests.md b/src/doc/rustdoc/src/documentation-tests.md
index 6be53fb4cfe..aea55d4f4b6 100644
--- a/src/doc/rustdoc/src/documentation-tests.md
+++ b/src/doc/rustdoc/src/documentation-tests.md
@@ -359,9 +359,8 @@ are added.
 # fn foo() {}
 ```
 
-`edition2018` tells `rustdoc` that the code sample should be compiled using
-the 2018 edition of Rust. Similarly, you can specify `edition2015` to compile
-the code with the 2015 edition.
+`edition2015`, `edition2018` and `edition2021` tell `rustdoc`
+that the code sample should be compiled using the respective edition of Rust.
 
 ```rust
 /// Only runs on the 2018 edition.