Skip to content

Commit 940ae78

Browse files
authored
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?
2 parents 8ecdc84 + e490aae commit 940ae78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/fmt/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ pub struct Error;
108108
/// [`io::Write`]: ../../std/io/trait.Write.html
109109
#[stable(feature = "rust1", since = "1.0.0")]
110110
pub trait Write {
111-
/// Writes a slice of bytes into this writer, returning whether the write
111+
/// Writes a string slice into this writer, returning whether the write
112112
/// succeeded.
113113
///
114-
/// This method can only succeed if the entire byte slice was successfully
114+
/// This method can only succeed if the entire string slice was successfully
115115
/// written, and this method will not return until all data has been
116116
/// written or an error occurs.
117117
///

0 commit comments

Comments
 (0)