mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-24 09:16:46 +00:00
chore: Fix rustdoc lints
This commit is contained in:
parent
2987d21562
commit
6fd127808d
3 changed files with 8 additions and 9 deletions
|
@ -1,3 +1,4 @@
|
|||
#![allow(rustdoc::invalid_html_tags)]
|
||||
//! # Async version of the Rust standard library
|
||||
//!
|
||||
//! `async-std` is a foundation of portable Rust software, a set of minimal and battle-tested
|
||||
|
|
|
@ -19,11 +19,9 @@ use crate::task::Builder;
|
|||
/// ```no_run
|
||||
/// use async_std::task;
|
||||
///
|
||||
/// fn main() {
|
||||
/// task::block_on(async {
|
||||
/// println!("Hello, world!");
|
||||
/// })
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
pub fn block_on<F, T>(future: F) -> T
|
||||
|
|
Loading…
Reference in a new issue