Simplify match
branches in documentation comment
This commit is contained in:
parent
c1b8eb5ad4
commit
692c88c9bc
@ -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),
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user