Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Grammar fixes for BufRead::has_data_left docs
  • Loading branch information
ethanwu10 committed Apr 26, 2025
commit 0084862cd3c739cd850d1e757b7059e154c1fb08
4 changes: 2 additions & 2 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
///
Expand Down
Loading