From 458d3a8371cd06ca5e6442ec394b95ffa72f7a30 Mon Sep 17 00:00:00 2001 From: Matthew Woodcraft Date: Sat, 1 Jan 2022 16:31:26 +0000 Subject: [PATCH] STYLE.md: say more about edition annotations for examples --- STYLE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STYLE.md b/STYLE.md index 0762127..f51cba3 100644 --- a/STYLE.md +++ b/STYLE.md @@ -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.