Skip to content

Commit

Permalink
Update the default edition for code blocks to 2021
Browse files Browse the repository at this point in the history
This is important because the example on
https://veykril.github.io/tlborm/decl-macros/minutiae/fragment-specifiers.html#pat
is failed due to or-patterns only allowed since 2021 edition.
  • Loading branch information
zjp-CN authored and Veykril committed Apr 17, 2022
1 parent f7ef4fa commit 4ee483e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ level = 1
"/decl-macros/syntax/ast.html" = "../../syntax-extensions/ast.html"
"/decl-macros/syntax/expansion.html" = "../../syntax-extensions/expansion.html"
"/decl-macros/syntax/source-analysis.html" = "../../syntax-extensions/source-analysis.html"

[rust]
# see: https://rust-lang.github.io/mdBook/format/configuration/general.html#rust-options
edition = "2021"

0 comments on commit 4ee483e

Please sign in to comment.