]> git.lizzy.rs Git - rust.git/commitdiff
fix test failures in documentation change
authorAndrew Gauger <andygauge@gmail.com>
Tue, 29 Aug 2017 19:53:12 +0000 (12:53 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2017 19:53:12 +0000 (12:53 -0700)
src/libstd/macros.rs

index 8c7f0fec92646d9a40e0940290df8e8b1ace8b40..8dfe7b2b54f5a17f38c327e811668e39798b2d0e 100644 (file)
@@ -194,7 +194,7 @@ macro_rules! println {
 /// # Examples
 ///
 /// ```
-/// eprint("Error: Could not complete task");
+/// eprint!("Error: Could not complete task");
 /// ```
 #[macro_export]
 #[stable(feature = "eprint", since = "1.19.0")]
@@ -222,7 +222,7 @@ macro_rules! eprint {
 /// # Examples
 ///
 /// ```
-/// eprint("Error: Could not complete task");
+/// eprintln!("Error: Could not complete task");
 /// ```
 #[macro_export]
 #[stable(feature = "eprint", since = "1.19.0")]