Skip to content

Commit 7bce702

Browse files
committed
doc fmt
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent ffc6646 commit 7bce702

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/macros.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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;
@@ -41,7 +41,7 @@
4141
///
4242
/// io::stdout().flush().await.unwrap();
4343
/// #
44-
/// # Ok(()) }) }
44+
/// # })
4545
/// ```
4646
#[macro_export]
4747
macro_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]
8383
macro_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]
116116
macro_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]
148148
macro_rules! eprintln {

0 commit comments

Comments
 (0)