Skip to content

Commit 4cfa2ee

Browse files
committed
Rollup merge of rust-lang#31827 - teoryn:patch-1, r=brson
2 parents 7731cdc + b49ce1a commit 4cfa2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ struct Person {
303303
}
304304

305305
let name = "Steve".to_string();
306-
let mut x: Option<Person> = Some(Person { name: Some(name) });
306+
let x: Option<Person> = Some(Person { name: Some(name) });
307307
match x {
308308
Some(Person { name: ref a @ Some(_), .. }) => println!("{:?}", a),
309309
_ => {}

0 commit comments

Comments
 (0)