From eeb29604479957d796b8819183591a731d279edc Mon Sep 17 00:00:00 2001 From: Meadow Liu Date: Tue, 26 Nov 2024 21:21:03 -0800 Subject: [PATCH] fix inconsistent spacing in example --- src/patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patterns.md b/src/patterns.md index 305699a74..664ad88c2 100644 --- a/src/patterns.md +++ b/src/patterns.md @@ -231,7 +231,7 @@ To make it valid, write the following: # age: u8, # } # let value = Person { name: String::from("John"), age: 23 }; -if let Person {name: ref person_name, age: 18..=150 } = value { } +if let Person { name: ref person_name, age: 18..=150 } = value { } ``` Thus, `ref` is not something that is being matched against.