about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-17 13:46:13 +0200
committerGitHub <noreply@github.com>2019-10-17 13:46:13 +0200
commit4f84bd4bc58aa400433f477412025a7fa7c63d3c (patch)
tree1d065230e5b43f07996a6c91f31ac8ff5cad6a89
parent5bf5d6dc73ada7628a5ea91a9905b5c5ef15b46e (diff)
parente490aaea7ee448d3eaacca291257735dfcf37c1d (diff)
downloadrust-4f84bd4bc58aa400433f477412025a7fa7c63d3c.tar.gz
rust-4f84bd4bc58aa400433f477412025a7fa7c63d3c.zip
Rollup merge of #65478 - RalfJung:write, r=jonas-schievink
fmt::Write is about string slices, not byte slices

No idea why the docs talk about bytes, maybe a copy-paste error?
-rw-r--r--src/libcore/fmt/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
index 5dfdd162306..8413b2e0ac4 100644
--- a/src/libcore/fmt/mod.rs
+++ b/src/libcore/fmt/mod.rs
@@ -108,10 +108,10 @@ pub struct Error;
 /// [`io::Write`]: ../../std/io/trait.Write.html
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Write {
-    /// Writes a slice of bytes into this writer, returning whether the write
+    /// Writes a string slice into this writer, returning whether the write
     /// succeeded.
     ///
-    /// This method can only succeed if the entire byte slice was successfully
+    /// This method can only succeed if the entire string slice was successfully
     /// written, and this method will not return until all data has been
     /// written or an error occurs.
     ///