From 467b64b6e75cac797dde8f63ea8133b99f9a7c76 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sun, 13 Oct 2019 12:51:21 +0200 Subject: [PATCH] doc fmt Signed-off-by: Yoshua Wuyts --- src/macros.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index d06238c..d7e4ae4 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -21,7 +21,7 @@ /// # Examples /// /// ``` -/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async { +/// # async_std::task::block_on(async { /// # /// use async_std::prelude::*; /// use async_std::io; @@ -41,7 +41,7 @@ /// /// io::stdout().flush().await.unwrap(); /// # -/// # Ok(()) }) } +/// # }) /// ``` #[macro_export] macro_rules! print { @@ -69,7 +69,7 @@ macro_rules! print { /// # Examples /// /// ``` -/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async { +/// # async_std::task::block_on(async { /// # /// use async_std::println; /// @@ -77,7 +77,7 @@ macro_rules! print { /// println!("hello there!").await; /// println!("format {} arguments", "some").await; /// # -/// # Ok(()) }) } +/// # }) /// ``` #[macro_export] macro_rules! println { @@ -104,13 +104,13 @@ macro_rules! println { /// # Examples /// /// ``` -/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async { +/// # async_std::task::block_on(async { /// # /// use async_std::eprint; /// /// eprint!("Error: Could not complete task").await; /// # -/// # Ok(()) }) } +/// # }) /// ``` #[macro_export] macro_rules! eprint { @@ -136,13 +136,13 @@ macro_rules! eprint { /// # Examples /// /// ``` -/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async { +/// # async_std::task::block_on(async { /// # /// use async_std::eprintln; /// /// eprintln!("Error: Could not complete task").await; /// # -/// # Ok(()) }) } +/// # }) /// ``` #[macro_export] macro_rules! eprintln {