]> git.lizzy.rs Git - rust.git/commit
auto merge of #18120 : jrincayc/rust/match_exp, r=thestinger
authorbors <bors@rust-lang.org>
Sun, 19 Oct 2014 00:47:18 +0000 (00:47 +0000)
committerbors <bors@rust-lang.org>
Sun, 19 Oct 2014 00:47:18 +0000 (00:47 +0000)
commitc46812f6593eb8d9b294d082a487270d7c7be6ef
treee181dd5c772eb30de5a6bb651f8518af3a53facd
parentd8cf0239713aa5683dc80872c4ea1962599e75e7
parentce83a24b5f525cba5bd9b734be969f4595b7ca0b
auto merge of #18120 : jrincayc/rust/match_exp, r=thestinger

Use a match expression directly in the println statement, instead of creating a second variable.  It seems weird that the current guide.md complains about creating an extra variable, when the same feature could be demonstrated without creating the extra variable.