Skip to content

Commit

Permalink
Rollup merge of rust-lang#65478 - RalfJung:write, r=jonas-schievink
Browse files Browse the repository at this point in the history
fmt::Write is about string slices, not byte slices

No idea why the docs talk about bytes, maybe a copy-paste error?
  • Loading branch information
Centril authored Oct 17, 2019
2 parents 5bf5d6d + e490aae commit 4f84bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 4f84bd4

Please sign in to comment.