Skip to content

Commit 70650ac

Browse files
Fix typos in examples
1 parent 9e1bb8e commit 70650ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/3627-match-ergonomics-2024.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ allows strictly more code to compile.)
228228
```rust
229229
//! All editions (new)
230230

231-
let &[[a]]; = &[&mut [42]];
231+
let &[[a]] = &[&mut [42]];
232232
let _: &u8 = a;
233233

234-
let &[[a]]; = &mut [&mut [42]];
234+
let &[[a]] = &mut [&mut [42]];
235235
let _: &u8 = a;
236236
```
237237

238238
```rust
239239
//! Edition ≥ 2024
240240

241-
let &[[&a]]; = &[&mut [42]];
241+
let &[[&a]] = &[&mut [42]];
242242
let _: u8 = a;
243243

244-
//let &[[&mut a]]; = &[&mut [42]]; // ERROR
244+
//let &[[&mut a]] = &[&mut [42]]; // ERROR
245245
```
246246

247247
# Migration

0 commit comments

Comments
 (0)