Skip to content
Open
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/diskio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub(crate) enum FileBuffer {
}

impl FileBuffer {
/// All the buffers space to be re-used when the last reference to it is dropped.
/// All the buffer space to be reused when the last reference to it is dropped.
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc comment is still an incomplete sentence (“All the buffer space …”). Consider rephrasing to a verb-led sentence (e.g., starting with “Allows …”/“Allow …” or “Releases …”) so it reads clearly in rustdoc and accurately describes what clear() does.

Suggested change
/// All the buffer space to be reused when the last reference to it is dropped.
/// Releases the buffer space to be reused when the last reference to it is dropped.

Copilot uses AI. Check for mistakes.
pub(crate) fn clear(&mut self) {
if let FileBuffer::Threaded(contents) = self {
contents.clear()
Expand Down
Loading