about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorChris Wong <lambda.fairy@gmail.com>2015-02-14 12:56:32 +1300
committerChris Wong <lambda.fairy@gmail.com>2015-02-14 12:56:32 +1300
commitbc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb (patch)
tree7eca299eb3e3c7f1494f067bc6dcb4c119c279dd /src/libstd/io
parentcf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff)
downloadrust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.tar.gz
rust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.zip
Rename `fmt::Writer` to `fmt::Write`
This brings it in line with its namesake in `std::io`.

[breaking-change]
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 2668baba095..89c45f60d1c 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -381,14 +381,14 @@ pub trait Write {
     ///
     /// This function will return any I/O error reported while formatting.
     fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()> {
-        // Create a shim which translates a Writer to a fmt::Writer and saves
+        // Create a shim which translates a Write to a fmt::Write and saves
         // off I/O errors. instead of discarding them
         struct Adaptor<'a, T: ?Sized + 'a> {
             inner: &'a mut T,
             error: Result<()>,
         }
 
-        impl<'a, T: Write + ?Sized> fmt::Writer for Adaptor<'a, T> {
+        impl<'a, T: Write + ?Sized> fmt::Write for Adaptor<'a, T> {
             fn write_str(&mut self, s: &str) -> fmt::Result {
                 match self.inner.write_all(s.as_bytes()) {
                     Ok(()) => Ok(()),