about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-29 12:23:22 +0200
committerGitHub <noreply@github.com>2020-04-29 12:23:22 +0200
commitfb1aa5624dff1d96249080fe365ed794431f45db (patch)
tree00829f88c66f87f82be2c64caf18212c96d84c0d /src/libstd
parent65527cbc1b01c50ae36cfd9006deb7b427637fdc (diff)
parent3a40cbb665495400daf9052c836aa54732f632aa (diff)
downloadrust-fb1aa5624dff1d96249080fe365ed794431f45db.tar.gz
rust-fb1aa5624dff1d96249080fe365ed794431f45db.zip
Rollup merge of #71296 - ChiefMilesEdgeworth:fix_doc_wording, r=Dylan-DPC
Change wording on read_vectored docs

Closes #70154

I'm happy to work with others to make the wording on this more clear. I think what I have is an improvement but may not be the final wording.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 9cfb1728c04..36c6aa620d5 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -571,8 +571,9 @@ pub trait Read {
     /// Like `read`, except that it reads into a slice of buffers.
     ///
     /// Data is copied to fill each buffer in order, with the final buffer
-    /// written to possibly being only partially filled. This method must behave
-    /// as a single call to `read` with the buffers concatenated would.
+    /// written to possibly being only partially filled. This method must
+    /// behave equivalently to a single call to `read` with concatenated
+    /// buffers.
     ///
     /// The default implementation calls `read` with either the first nonempty
     /// buffer provided, or an empty one if none exists.