Simplify `match` branches in documentation comment

This commit is contained in:
Corey Farwell 2015-04-03 18:09:11 -07:00
parent c1b8eb5ad4
commit 692c88c9bc
1 changed files with 2 additions and 6 deletions

View File

@ -46,12 +46,8 @@
//!
//! let version = parse_version(&[1, 2, 3, 4]);
//! match version {
//! Ok(v) => {
//! println!("working with version: {:?}", v);
//! }
//! Err(e) => {
//! println!("error parsing header: {:?}", e);
//! }
//! Ok(v) => println!("working with version: {:?}", v),
//! Err(e) => println!("error parsing header: {:?}", e),
//! }
//! ```
//!