提交 692c88c9 编写于 作者: C Corey Farwell

Simplify `match` branches in documentation comment

上级 c1b8eb5a
......@@ -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),
//! }
//! ```
//!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册