From e084e1773667c8eae28d9aab6d4939348eec0092 Mon Sep 17 00:00:00 2001 From: Bogdan Arabadzhi Date: Sun, 23 Jul 2017 13:24:36 +0300 Subject: [PATCH] Update ch19-04-advanced-types.md Make Arguments usage explicit. --- second-edition/src/ch19-04-advanced-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second-edition/src/ch19-04-advanced-types.md b/second-edition/src/ch19-04-advanced-types.md index 206dadf37..d0b77bbb2 100644 --- a/second-edition/src/ch19-04-advanced-types.md +++ b/second-edition/src/ch19-04-advanced-types.md @@ -123,14 +123,14 @@ the functions in `std::io` will be returning `Result` 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; 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>; } ```