Skip to content

Commit 80322e2

Browse files
committed
Return Ok(()) instead of Ok()
1 parent a41fd59 commit 80322e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ macro_rules! println {
132132
/// let mut file = try!(File::create("my_best_friends.txt"));
133133
/// try!(file.write_all(b"This is a list of my best friends."));
134134
/// println!("I wrote to the file");
135-
/// Ok()
135+
/// Ok(())
136136
/// }
137137
/// // This is equivalent to:
138138
/// fn write_to_file_using_match() -> Result<(), io::Error> {
@@ -142,7 +142,7 @@ macro_rules! println {
142142
/// Err(e) => return Err(e),
143143
/// }
144144
/// println!("I wrote to the file");
145-
/// Ok()
145+
/// Ok(())
146146
/// }
147147
/// ```
148148
#[macro_export]

0 commit comments

Comments
 (0)