Skip to content

Commit 458d3a8

Browse files
committed
STYLE.md: say more about edition annotations for examples
1 parent 2abadeb commit 458d3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STYLE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ See https://highlightjs.org/ for a list of supported languages.
4141

4242
Rust examples are tested via rustdoc, and should include the appropriate annotations when tests are expected to fail:
4343

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

0 commit comments

Comments
 (0)