mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
io: use stderr in stderr documentation (#2746)
This commit is contained in:
@@ -59,7 +59,7 @@ cfg_io_std! {
|
|||||||
///
|
///
|
||||||
/// #[tokio::main]
|
/// #[tokio::main]
|
||||||
/// async fn main() -> io::Result<()> {
|
/// async fn main() -> io::Result<()> {
|
||||||
/// let mut stderr = io::stdout();
|
/// let mut stderr = io::stderr();
|
||||||
/// stderr.write_all(b"Print some error here.").await?;
|
/// stderr.write_all(b"Print some error here.").await?;
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
Reference in New Issue
Block a user