chore: Fix rustdoc lints

pull/1088/head
John Vandenberg 4 months ago
parent 2987d21562
commit 6fd127808d

@ -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…
Cancel
Save