Skip to content

docs: fix disk buffer comment wording#4817

Open
Rohan5commit wants to merge 1 commit intorust-lang:mainfrom
Rohan5commit:docs-release-process-typo-20260418
Open

docs: fix disk buffer comment wording#4817
Rohan5commit wants to merge 1 commit intorust-lang:mainfrom
Rohan5commit:docs-release-process-typo-20260418

Conversation

@Rohan5commit
Copy link
Copy Markdown

Summary

  • fix wording in a disk buffer comment

Related issue

  • N/A (trivial docs/comment fix)

Guideline alignment

  • reviewed the repository guidance in README.md
  • kept the change to one source file comment with no behavior impact

Validation

  • git diff --check

Copilot AI review requested due to automatic review settings April 18, 2026 02:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates a doc comment in the disk I/O buffer implementation to improve wording/clarity without changing runtime behavior.

Changes:

  • Adjusted wording in the FileBuffer::clear doc comment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

View changes since this review

Comment thread src/diskio/mod.rs

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants