Skip to content

Commit 19e0c7c

Browse files
Fix example
Arrays are homogeneous…
1 parent 5754a9c commit 19e0c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3627-match-ergonomics-2024.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ extern crate foo;
284284
use foo::*;
285285

286286
fn main() {
287-
let [[&x], foo!(y)] = &[[&0], [0]];
287+
let ([&x], foo!(y)) = &([&0], [0]);
288288
//~^ WARN: the semantics of this pattern will change in edition 2024
289289
let _: i32 = x;
290290
let _: &i32 = y;

0 commit comments

Comments
 (0)