Skip to content

Commit

Permalink
Simplify match branches in documentation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Apr 4, 2015
1 parent c1b8eb5 commit 692c88c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/libcore/result.rs
Expand Up @@ -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),
//! }
//! ```
//!
Expand Down

0 comments on commit 692c88c

Please sign in to comment.