Skip to content

Commit 04501bc

Browse files
Fix fairer example
1 parent c2bdf38 commit 04501bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

text/3627-match-ergonomics-2024.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,12 @@ let &(i, j, [s]) = &(63, 42, &mut [String::from("🦀")]); // i: i32, j: i32, s:
338338
```
339339

340340
```rust
341-
//! All editions: works with or without this rule (alternative to above)
341+
//! Edition ≥ 2024: works with or without this rule (alternative to above)
342342
let (&i, &j, [s]) = &(42, &mut [String::from("🦀")]); // i: i32, j: i32, s: &String
343+
```
344+
345+
```rust
346+
//! All editions: works with or without this rule (alternatives to above)
343347
let &(i, j, [ref s]) = &(42, &mut [String::from("🦀")]); // i: i32, j: i32, s: &String
344348
let &(i, j, &mut [ref s]) = &(42, &mut [String::from("🦀")]); // i: i32, j: i32, s: &String
345349
```

0 commit comments

Comments
 (0)