Skip to content

Commit 692c88c

Browse files
committed
Simplify match branches in documentation comment
1 parent c1b8eb5 commit 692c88c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libcore/result.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@
4646
//!
4747
//! let version = parse_version(&[1, 2, 3, 4]);
4848
//! match version {
49-
//! Ok(v) => {
50-
//! println!("working with version: {:?}", v);
51-
//! }
52-
//! Err(e) => {
53-
//! println!("error parsing header: {:?}", e);
54-
//! }
49+
//! Ok(v) => println!("working with version: {:?}", v),
50+
//! Err(e) => println!("error parsing header: {:?}", e),
5551
//! }
5652
//! ```
5753
//!

0 commit comments

Comments
 (0)