diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-26 16:12:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-26 16:12:34 +0200 |
| commit | 153eeb0e24471a4733878c611cf60e8ba827d6cd (patch) | |
| tree | 8a7822df3f57929510160713ec757a27d42fad04 /library | |
| parent | 3c322bc1ccc29900040b4847a7d53c10cd25a802 (diff) | |
| parent | 0084862cd3c739cd850d1e757b7059e154c1fb08 (diff) | |
| download | rust-153eeb0e24471a4733878c611cf60e8ba827d6cd.tar.gz rust-153eeb0e24471a4733878c611cf60e8ba827d6cd.zip | |
Rollup merge of #140325 - ethanwu10:ethanwu10/grammar-fixes-for-bufread-has-data-left-docs, r=jhpratt
Grammar fixes for BufRead::has_data_left docs Fix some grammar in the documentation for `BufRead::has_data_left`
Diffstat (limited to 'library')
| -rw-r--r-- | library/std/src/io/mod.rs | 4 |
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). /// |
