Skip to content

Commit f45f40d

Browse files
committed
Generalize item about edition test annotations
In our authoring guide, we describe how to control the edition for a test. This was written as though the only two editions were 2015 and 2018. Let's update the wording to make this more general.
1 parent 7712fe4 commit f45f40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/authoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ See <https://rust-lang.github.io/mdBook/format/theme/syntax-highlighting.html#su
4747

4848
Rust examples are tested via rustdoc, and should include the appropriate annotations:
4949

50-
* `edition2015` or `edition2018` --- If it is edition-specific (see `book.toml` for the default).
50+
* `edition2015`, `edition2018`, etc. --- If it is edition-specific (see `book.toml` for the default).
5151
* `no_run` --- The example should compile successfully, but should not be executed.
5252
* `should_panic` --- The example should compile and run, but produce a panic.
5353
* `compile_fail` --- The example is expected to fail to compile.

0 commit comments

Comments
 (0)