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