about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEthan Wu <ethanwu10@gmail.com>2025-04-25 22:21:40 -0700
committerEthan Wu <ethanwu10@gmail.com>2025-04-25 22:21:40 -0700
commit0084862cd3c739cd850d1e757b7059e154c1fb08 (patch)
tree635d393cf15dda45e0b05dbb6e5a7df7d0402313
parent555e1d0386f024a8359645c3217f4b3eae9be042 (diff)
downloadrust-0084862cd3c739cd850d1e757b7059e154c1fb08.tar.gz
rust-0084862cd3c739cd850d1e757b7059e154c1fb08.zip
Grammar fixes for BufRead::has_data_left docs
-rw-r--r--library/std/src/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index 5242261cf93..96fac4f6bde 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -2319,9 +2319,9 @@ pub trait BufRead: Read {
     /// Checks if there is any data left to be `read`.
     ///
     /// This function may fill the buffer to check for data,
-    /// so this functions returns `Result<bool>`, not `bool`.
+    /// so this function returns `Result<bool>`, not `bool`.
     ///
-    /// Default implementation calls `fill_buf` and checks that
+    /// The default implementation calls `fill_buf` and checks that the
     /// returned slice is empty (which means that there is no data left,
     /// since EOF is reached).
     ///