diff options
| author | Kevin Stock <kevin@kevinstock.org> | 2016-02-22 22:37:02 -0500 |
|---|---|---|
| committer | Kevin Stock <kevin@kevinstock.org> | 2016-02-22 22:37:02 -0500 |
| commit | b49ce1a599dffd2496a2f2f2bebbd8c4e1947cab (patch) | |
| tree | 9fa8b331e5da4ff83db80c33cfca95136c7c38f0 /src | |
| parent | c8fc4817dcbf50690aba1fc8bd4db336aff2dbc6 (diff) | |
| download | rust-b49ce1a599dffd2496a2f2f2bebbd8c4e1947cab.tar.gz rust-b49ce1a599dffd2496a2f2f2bebbd8c4e1947cab.zip | |
Fix warn(unused_mut) in example
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/patterns.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/patterns.md b/src/doc/book/patterns.md index 6fd7f4cd475..7325d448962 100644 --- a/src/doc/book/patterns.md +++ b/src/doc/book/patterns.md @@ -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), _ => {} |
