Skip to content

Commit

Permalink
Remove unnecessary returns in API examples
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Apr 6, 2015
1 parent cf51e55 commit 19d8b67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
//! let mut file = File::open_mode(&Path::new("valuable_data.txt"), Open, Write);
//! try!(file.write_line("important message"));
//! drop(file);
//! return Ok(());
//! Ok(())
//! }
//! ```
//!
Expand Down Expand Up @@ -189,7 +189,7 @@
//! if let Err(e) = file.write_line(&format!("age: {}", info.age)) {
//! return Err(e)
//! }
//! return file.write_line(&format!("rating: {}", info.rating));
//! file.write_line(&format!("rating: {}", info.rating))
//! }
//! ```
//!
Expand All @@ -212,7 +212,7 @@
//! try!(file.write_line(&format!("name: {}", info.name)));
//! try!(file.write_line(&format!("age: {}", info.age)));
//! try!(file.write_line(&format!("rating: {}", info.rating)));
//! return Ok(());
//! Ok(())
//! }
//! ```
//!
Expand Down

0 comments on commit 19d8b67

Please sign in to comment.