diff options
| author | Carol Nichols <carol.nichols@gmail.com> | 2015-06-03 13:23:40 -0400 |
|---|---|---|
| committer | Carol Nichols <carol.nichols@gmail.com> | 2015-06-03 13:23:40 -0400 |
| commit | 80322e2e970bc7d2d36c14fb63f753fe39acf63e (patch) | |
| tree | bb1c10d32dd4d2ac17a37457e4990ad691f49690 /src/libstd | |
| parent | a41fd590a8142b524d6a6d34e8977906d6787368 (diff) | |
| download | rust-80322e2e970bc7d2d36c14fb63f753fe39acf63e.tar.gz rust-80322e2e970bc7d2d36c14fb63f753fe39acf63e.zip | |
Return Ok(()) instead of Ok()
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index cbb28804459..26ace45890c 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -132,7 +132,7 @@ macro_rules! println { /// let mut file = try!(File::create("my_best_friends.txt")); /// try!(file.write_all(b"This is a list of my best friends.")); /// println!("I wrote to the file"); -/// Ok() +/// Ok(()) /// } /// // This is equivalent to: /// fn write_to_file_using_match() -> Result<(), io::Error> { @@ -142,7 +142,7 @@ macro_rules! println { /// Err(e) => return Err(e), /// } /// println!("I wrote to the file"); -/// Ok() +/// Ok(()) /// } /// ``` #[macro_export] |
