diff options
| author | Corey Farwell <coreyf@rwell.org> | 2015-04-03 18:09:11 -0700 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2015-04-03 18:09:11 -0700 |
| commit | 692c88c9bc5e0f8d8fc1b732874a48dcf2c47b0a (patch) | |
| tree | 9ead9d7d908283bcf3d8d8db0781890b081a3f48 | |
| parent | c1b8eb5ad4e4b581a38dd7d94723497b568a60d4 (diff) | |
| download | rust-692c88c9bc5e0f8d8fc1b732874a48dcf2c47b0a.tar.gz rust-692c88c9bc5e0f8d8fc1b732874a48dcf2c47b0a.zip | |
Simplify `match` branches in documentation comment
| -rw-r--r-- | src/libcore/result.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index eff04dd5903..42d0b2a2c62 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -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), //! } //! ``` //! |
