File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2121/// # Examples
2222///
2323/// ```
24- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
24+ /// # async_std::task::block_on(async {
2525/// #
2626/// use async_std::prelude::*;
2727/// use async_std::io;
4141///
4242/// io::stdout().flush().await.unwrap();
4343/// #
44- /// # Ok(()) }) }
44+ /// # })
4545/// ```
4646#[ macro_export]
4747macro_rules! print {
@@ -69,15 +69,15 @@ macro_rules! print {
6969/// # Examples
7070///
7171/// ```
72- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
72+ /// # async_std::task::block_on(async {
7373/// #
7474/// use async_std::println;
7575///
7676/// println!().await; // prints just a newline
7777/// println!("hello there!").await;
7878/// println!("format {} arguments", "some").await;
7979/// #
80- /// # Ok(()) }) }
80+ /// # })
8181/// ```
8282#[ macro_export]
8383macro_rules! println {
@@ -104,13 +104,13 @@ macro_rules! println {
104104/// # Examples
105105///
106106/// ```
107- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
107+ /// # async_std::task::block_on(async {
108108/// #
109109/// use async_std::eprint;
110110///
111111/// eprint!("Error: Could not complete task").await;
112112/// #
113- /// # Ok(()) }) }
113+ /// # })
114114/// ```
115115#[ macro_export]
116116macro_rules! eprint {
@@ -136,13 +136,13 @@ macro_rules! eprint {
136136/// # Examples
137137///
138138/// ```
139- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
139+ /// # async_std::task::block_on(async {
140140/// #
141141/// use async_std::eprintln;
142142///
143143/// eprintln!("Error: Could not complete task").await;
144144/// #
145- /// # Ok(()) }) }
145+ /// # })
146146/// ```
147147#[ macro_export]
148148macro_rules! eprintln {
You can’t perform that action at this time.
0 commit comments