about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Chargin <wchargin@gmail.com>2020-11-17 15:29:49 -0800
committerWilliam Chargin <wchargin@gmail.com>2020-11-17 15:32:23 -0800
commitbdaa76cfde64d06bb93c1f9102a0312d84cd0983 (patch)
tree0ef388c20e2b3e871cc98c0814b968d381e58ef7
parentc919f490bbcd2b29b74016101f7ec71aaa24bdbb (diff)
downloadrust-bdaa76cfde64d06bb93c1f9102a0312d84cd0983.tar.gz
rust-bdaa76cfde64d06bb93c1f9102a0312d84cd0983.zip
Fix typo in `std::io::Write` docs
These referred to a “`Write`er”—extra *e*. Presumably a copy-paste
holdover from “`Read`er”.

Test Plan:
Running ``git grep '`\?[Ww]rite`\?er'`` no longer finds any results.

wchargin-branch: io-write-docs
-rw-r--r--library/std/src/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index 703c3755b63..dfbf6c3f244 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -1307,10 +1307,10 @@ pub trait Write {
         default_write_vectored(|b| self.write(b), bufs)
     }
 
-    /// Determines if this `Write`er has an efficient [`write_vectored`]
+    /// Determines if this `Write`r has an efficient [`write_vectored`]
     /// implementation.
     ///
-    /// If a `Write`er does not override the default [`write_vectored`]
+    /// If a `Write`r does not override the default [`write_vectored`]
     /// implementation, code using it may want to avoid the method all together
     /// and coalesce writes into a single buffer for higher performance.
     ///