Skip to content

Commit

Permalink
Switch the code samples to default to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 25, 2024
1 parent d7f3976 commit 12439a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ smart-punctuation = true
"/unsafe-functions.html" = "unsafe-keyword.html"

[rust]
edition = "2021"
edition = "2024"

[preprocessor.spec]
command = "cargo run --release --manifest-path mdbook-spec/Cargo.toml"
Expand Down
1 change: 0 additions & 1 deletion src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ r[destructors.scope.temporary.edition2024]
Some examples:

<!--TODO: edition2024 -->
```rust
# struct PrintOnDrop(&'static str);
# impl Drop for PrintOnDrop {
Expand Down

0 comments on commit 12439a4

Please sign in to comment.