File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 21
21
/// # Examples
22
22
///
23
23
/// ```
24
- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
24
+ /// # async_std::task::block_on(async {
25
25
/// #
26
26
/// use async_std::prelude::*;
27
27
/// use async_std::io;
41
41
///
42
42
/// io::stdout().flush().await.unwrap();
43
43
/// #
44
- /// # Ok(()) }) }
44
+ /// # })
45
45
/// ```
46
46
#[ macro_export]
47
47
macro_rules! print {
@@ -69,15 +69,15 @@ macro_rules! print {
69
69
/// # Examples
70
70
///
71
71
/// ```
72
- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
72
+ /// # async_std::task::block_on(async {
73
73
/// #
74
74
/// use async_std::println;
75
75
///
76
76
/// println!().await; // prints just a newline
77
77
/// println!("hello there!").await;
78
78
/// println!("format {} arguments", "some").await;
79
79
/// #
80
- /// # Ok(()) }) }
80
+ /// # })
81
81
/// ```
82
82
#[ macro_export]
83
83
macro_rules! println {
@@ -104,13 +104,13 @@ macro_rules! println {
104
104
/// # Examples
105
105
///
106
106
/// ```
107
- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
107
+ /// # async_std::task::block_on(async {
108
108
/// #
109
109
/// use async_std::eprint;
110
110
///
111
111
/// eprint!("Error: Could not complete task").await;
112
112
/// #
113
- /// # Ok(()) }) }
113
+ /// # })
114
114
/// ```
115
115
#[ macro_export]
116
116
macro_rules! eprint {
@@ -136,13 +136,13 @@ macro_rules! eprint {
136
136
/// # Examples
137
137
///
138
138
/// ```
139
- /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
139
+ /// # async_std::task::block_on(async {
140
140
/// #
141
141
/// use async_std::eprintln;
142
142
///
143
143
/// eprintln!("Error: Could not complete task").await;
144
144
/// #
145
- /// # Ok(()) }) }
145
+ /// # })
146
146
/// ```
147
147
#[ macro_export]
148
148
macro_rules! eprintln {
You can’t perform that action at this time.
0 commit comments