Skip to content

Commit 5953ab1

Browse files
committed
Switch the code samples to default to 2024
1 parent d203331 commit 5953ab1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

book.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ smart-punctuation = true
1616
"/unsafe-functions.html" = "unsafe-keyword.html"
1717

1818
[rust]
19-
edition = "2021"
19+
edition = "2024"
2020

2121
[preprocessor.spec]
2222
command = "cargo run --release --manifest-path mdbook-spec/Cargo.toml"

src/destructors.md

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ r[destructors.scope.temporary.edition2024]
226226
227227
Some examples:
228228

229-
<!--TODO: edition2024 -->
230229
```rust
231230
# struct PrintOnDrop(&'static str);
232231
# impl Drop for PrintOnDrop {

0 commit comments

Comments
 (0)