From 692c88c9bc5e0f8d8fc1b732874a48dcf2c47b0a Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 3 Apr 2015 18:09:11 -0700 Subject: [PATCH] Simplify `match` branches in documentation comment --- src/libcore/result.rs | 8 ++------ 1 file 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), //! } //! ``` //!