Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
stabilize-from-stream
Yoshua Wuyts 5 years ago
parent 296d0d9d31
commit 467b64b6e7
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

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