mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-23 08:46:46 +00:00
Merge pull request #1088 from jayvdb/fix-rustdoc-lints
This commit is contained in:
commit
340933b776
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 version of the Rust standard library
|
||||||
//!
|
//!
|
||||||
//! `async-std` is a foundation of portable Rust software, a set of minimal and battle-tested
|
//! `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
|
/// ```no_run
|
||||||
/// use async_std::task;
|
/// use async_std::task;
|
||||||
///
|
///
|
||||||
/// fn main() {
|
|
||||||
/// task::block_on(async {
|
/// task::block_on(async {
|
||||||
/// println!("Hello, world!");
|
/// println!("Hello, world!");
|
||||||
/// })
|
/// })
|
||||||
/// }
|
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(not(target_os = "unknown"))]
|
#[cfg(not(target_os = "unknown"))]
|
||||||
pub fn block_on<F, T>(future: F) -> T
|
pub fn block_on<F, T>(future: F) -> T
|
||||||
|
|
Loading…
Reference in a new issue