mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 01:58:51 -04:00
Update ch19-04-advanced-types.md
Make Arguments usage explicit.
This commit is contained in:
@@ -123,14 +123,14 @@ the functions in `std::io` will be returning `Result<T, E>` where the `E` is
|
||||
|
||||
```rust
|
||||
use std::io::Error;
|
||||
# use std::fmt::Arguments;
|
||||
use std::fmt;
|
||||
|
||||
pub trait Write {
|
||||
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>;
|
||||
fn flush(&mut self) -> Result<(), Error>;
|
||||
|
||||
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>;
|
||||
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>;
|
||||
fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<(), Error>;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user