Skip to content

Commit

Permalink
STYLE.md: say more about edition annotations for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheww committed Jan 1, 2022
1 parent 2abadeb commit 458d3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STYLE.md
Expand Up @@ -41,7 +41,7 @@ See https://highlightjs.org/ for a list of supported languages.

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

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

0 comments on commit 458d3a8

Please sign in to comment.