mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-24 09:16:46 +00:00
doc fmt
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
296d0d9d31
commit
467b64b6e7
1 changed files with 8 additions and 8 deletions
|
@ -21,7 +21,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
/// # async_std::task::block_on(async {
|
||||||
/// #
|
/// #
|
||||||
/// use async_std::prelude::*;
|
/// use async_std::prelude::*;
|
||||||
/// use async_std::io;
|
/// use async_std::io;
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
///
|
///
|
||||||
/// io::stdout().flush().await.unwrap();
|
/// io::stdout().flush().await.unwrap();
|
||||||
/// #
|
/// #
|
||||||
/// # Ok(()) }) }
|
/// # })
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! print {
|
macro_rules! print {
|
||||||
|
@ -69,7 +69,7 @@ macro_rules! print {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
/// # async_std::task::block_on(async {
|
||||||
/// #
|
/// #
|
||||||
/// use async_std::println;
|
/// use async_std::println;
|
||||||
///
|
///
|
||||||
|
@ -77,7 +77,7 @@ macro_rules! print {
|
||||||
/// println!("hello there!").await;
|
/// println!("hello there!").await;
|
||||||
/// println!("format {} arguments", "some").await;
|
/// println!("format {} arguments", "some").await;
|
||||||
/// #
|
/// #
|
||||||
/// # Ok(()) }) }
|
/// # })
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! println {
|
macro_rules! println {
|
||||||
|
@ -104,13 +104,13 @@ macro_rules! println {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
/// # async_std::task::block_on(async {
|
||||||
/// #
|
/// #
|
||||||
/// use async_std::eprint;
|
/// use async_std::eprint;
|
||||||
///
|
///
|
||||||
/// eprint!("Error: Could not complete task").await;
|
/// eprint!("Error: Could not complete task").await;
|
||||||
/// #
|
/// #
|
||||||
/// # Ok(()) }) }
|
/// # })
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! eprint {
|
macro_rules! eprint {
|
||||||
|
@ -136,13 +136,13 @@ macro_rules! eprint {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
/// # async_std::task::block_on(async {
|
||||||
/// #
|
/// #
|
||||||
/// use async_std::eprintln;
|
/// use async_std::eprintln;
|
||||||
///
|
///
|
||||||
/// eprintln!("Error: Could not complete task").await;
|
/// eprintln!("Error: Could not complete task").await;
|
||||||
/// #
|
/// #
|
||||||
/// # Ok(()) }) }
|
/// # })
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! eprintln {
|
macro_rules! eprintln {
|
||||||
|
|
Loading…
Reference in a new issue