about summary refs log tree commit diff
diff options
context:
space:
mode:
authorr00ster <r00ster91@protonmail.com>2021-12-05 14:43:43 +0100
committerGitHub <noreply@github.com>2021-12-05 14:43:43 +0100
commit706faa10aa63fd6d0972d76fbd6c40a976a38766 (patch)
treeca2a1919d4ad5987202a413f88c931648ccd1d2e
parentcafc4582e66c478b6b297ae85b225c788106015e (diff)
downloadrust-706faa10aa63fd6d0972d76fbd6c40a976a38766.tar.gz
rust-706faa10aa63fd6d0972d76fbd6c40a976a38766.zip
Update doc about code block edition attributes
-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.