about summary refs log tree commit diff
path: root/src/libcore/fmt
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-10-16 23:24:38 +0200
committerRalf Jung <post@ralfj.de>2019-10-16 23:24:38 +0200
commite490aaea7ee448d3eaacca291257735dfcf37c1d (patch)
tree89e0f424b8a011a685e32173739d46504cde686f /src/libcore/fmt
parent53aca553ec08e62a0591806fcf0f706ee9f53778 (diff)
downloadrust-e490aaea7ee448d3eaacca291257735dfcf37c1d.tar.gz
rust-e490aaea7ee448d3eaacca291257735dfcf37c1d.zip
fmt::Write is about string slices, not byte slices
Diffstat (limited to 'src/libcore/fmt')
-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.
     ///