diff --git a/src/tuples-and-arrays/destructuring.md b/src/tuples-and-arrays/destructuring.md index dfc8dcea..6d5a15b7 100644 --- a/src/tuples-and-arrays/destructuring.md +++ b/src/tuples-and-arrays/destructuring.md @@ -26,20 +26,6 @@ fn print_tuple(tuple: (i32, i32)) { } ``` -This works with any kind of structured value: - -```rust,editable -struct Foo { - a: i32, - b: bool, -} - -fn print_foo(foo: Foo) { - let Foo { a, b } = foo; - println!("a: {a}, b: {b}"); -} -``` -
- The patterns used here are "irrefutable", meaning that the compiler can