diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-04-14 14:49:10 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-04-14 14:49:10 -0400 |
| commit | 22877d6f18f0896c72b50d2a4823a5be6cb0bc6b (patch) | |
| tree | 044640a28349cd5376e381f48548c84957b052ce | |
| parent | 9fa8b493a05fcc74a4a1e781f08b577dc3d5f1ca (diff) | |
| parent | 0c8a7f293d212871ef4da0be012f00a00d4dbe39 (diff) | |
Rollup merge of #32893 - khernyo:clarify-try-doc, r=steveklabnik
Clarify try! doc example The original is correct, but a bit misleading. r? @steveklabnik
| -rw-r--r-- | src/libcore/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index f923668688b..ad90b447508 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -182,7 +182,7 @@ macro_rules! debug_assert_eq { /// fn write_to_file_using_match() -> Result<(), io::Error> { /// let mut file = try!(File::create("my_best_friends.txt")); /// match file.write_all(b"This is a list of my best friends.") { -/// Ok(_) => (), +/// Ok(v) => v, /// Err(e) => return Err(e), /// } /// println!("I wrote to the file"); |
