1
Fork 0

Rollup merge of #70232 - adrian5:patch-1, r=Dylan-DPC

Tweak wording for std::io::Read::read function

I think the sentence as a whole reads smoother that way.
This commit is contained in:
Dylan DPC 2020-03-21 22:56:30 +01:00 committed by GitHub
commit 39c52225dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,7 +502,7 @@ pub trait Read {
/// how many bytes were read. /// how many bytes were read.
/// ///
/// This function does not provide any guarantees about whether it blocks /// This function does not provide any guarantees about whether it blocks
/// waiting for data, but if an object needs to block for a read but cannot /// waiting for data, but if an object needs to block for a read and cannot,
/// it will typically signal this via an [`Err`] return value. /// it will typically signal this via an [`Err`] return value.
/// ///
/// If the return value of this method is [`Ok(n)`], then it must be /// If the return value of this method is [`Ok(n)`], then it must be