File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 138
138
//!
139
139
//! Call an async function from the main function:
140
140
//!
141
- //! ```
141
+ #![ cfg_attr( feature = "attributes" , doc = "```" ) ]
142
+ #![ cfg_attr( not( feature = "attributes" ) , doc = "```ignore" ) ]
142
143
//! async fn say_hello() {
143
144
//! println!("Hello, world!");
144
145
//! }
151
152
//!
152
153
//! Await two futures concurrently, and return a tuple of their output:
153
154
//!
154
- //! ```
155
+ #![ cfg_attr( feature = "attributes" , doc = "```" ) ]
156
+ #![ cfg_attr( not( feature = "attributes" ) , doc = "```ignore" ) ]
155
157
//! use async_std::prelude::*;
156
158
//!
157
159
//! #[async_std::main]
164
166
//!
165
167
//! Create a UDP server that echoes back each received message to the sender:
166
168
//!
167
- //! ```no_run
169
+ #![ cfg_attr( feature = "attributes" , doc = "```no_run" ) ]
170
+ #![ cfg_attr( not( feature = "attributes" ) , doc = "```ignore" ) ]
168
171
//! use async_std::net::UdpSocket;
169
172
//!
170
173
//! #[async_std::main]
Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ extension_trait! {
1011
1011
1012
1012
# Examples
1013
1013
1014
- ```ignore
1014
+ ```
1015
1015
# fn main() { async_std::task::block_on(async {
1016
1016
#
1017
1017
use async_std::prelude::*;
@@ -1044,7 +1044,7 @@ extension_trait! {
1044
1044
1045
1045
# Examples
1046
1046
1047
- ```ignore
1047
+ ```
1048
1048
# fn main() { async_std::task::block_on(async {
1049
1049
#
1050
1050
use async_std::prelude::*;
You can’t perform that action at this time.
0 commit comments