From 80322e2e970bc7d2d36c14fb63f753fe39acf63e Mon Sep 17 00:00:00 2001 From: Carol Nichols Date: Wed, 3 Jun 2015 13:23:40 -0400 Subject: [PATCH] Return Ok(()) instead of Ok() --- src/libstd/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index cbb288044594..26ace45890c3 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]