about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-21 22:56:30 +0100
committerGitHub <noreply@github.com>2020-03-21 22:56:30 +0100
commit39c52225dd06ab06ef75ef97841c66c7d9b6e56c (patch)
treed2ee6a814e44afed354f2fb41bac7c77320edd6e /src
parent4b5ca6e4a7d31130937d0dff704cb8df4a1374b4 (diff)
parent0b307f7a9f00878325f8c2c2573ea49e7a9c4353 (diff)
downloadrust-39c52225dd06ab06ef75ef97841c66c7d9b6e56c.tar.gz
rust-39c52225dd06ab06ef75ef97841c66c7d9b6e56c.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index dc831432c17..83c492fecf9 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -502,7 +502,7 @@ pub trait Read {
     /// how many bytes were read.
     ///
     /// 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.
     ///
     /// If the return value of this method is [`Ok(n)`], then it must be