Skip to content

Commit

Permalink
Rollup merge of rust-lang#31827 - teoryn:patch-1, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 25, 2016
2 parents 7731cdc + b49ce1a commit 4cfa2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct Person {
}

let name = "Steve".to_string();
let mut x: Option<Person> = Some(Person { name: Some(name) });
let x: Option<Person> = Some(Person { name: Some(name) });
match x {
Some(Person { name: ref a @ Some(_), .. }) => println!("{:?}", a),
_ => {}
Expand Down

0 comments on commit 4cfa2ee

Please sign in to comment.