Return Ok(()) instead of Ok()

This commit is contained in:
Carol Nichols 2015-06-03 13:23:40 -04:00
parent a41fd590a8
commit 80322e2e97

View File

@ -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]