From 1835896e58a8c21271cf913dc17ce2b235ee4091 Mon Sep 17 00:00:00 2001 From: Charisee Chiw Date: Mon, 6 Feb 2023 23:42:57 -0800 Subject: [PATCH] Speaker notes for destructuring-structs.md (#265) * Update destructuring-structs.md * Update destructuring-structs.md --- src/pattern-matching/destructuring-structs.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pattern-matching/destructuring-structs.md b/src/pattern-matching/destructuring-structs.md index 74efa201..ceaef1db 100644 --- a/src/pattern-matching/destructuring-structs.md +++ b/src/pattern-matching/destructuring-structs.md @@ -5,3 +5,8 @@ You can also destructure `structs`: ```rust,editable {{#include ../../third_party/rust-by-example/destructuring-structs.rs}} ``` +
+ +* Change the literal values in `foo` to match with the other patterns. +* Add a new field to `Foo` and make changes to the pattern as needed. +