fix: correct 'occured' typo in I/O error message#423
Conversation
Summary by CodeRabbit
WalkthroughThis PR corrects a spelling error in the I/O error variant's display message. The ChangesError Message Spelling Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/error.rs (1)
7-7:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winFix additional typo in module documentation.
While fixing the "occured" → "occurred" typo, there's another spelling error on this line: "occurr" should be "occur" (one 'r').
📝 Proposed fix
-/// A unified error enum that contains several errors that might occurr during +/// A unified error enum that contains several errors that might occur during🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/error.rs` at line 7, Fix the remaining typo in the module-level documentation in src/error.rs: change "occurr" to "occur" in the doc comment that begins "A unified error enum that contains several errors that might...". This is the docstring above the Error enum; update that comment to read "occur" (single 'r') so the sentence reads correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/error.rs`:
- Line 7: Fix the remaining typo in the module-level documentation in
src/error.rs: change "occurr" to "occur" in the doc comment that begins "A
unified error enum that contains several errors that might...". This is the
docstring above the Error enum; update that comment to read "occur" (single 'r')
so the sentence reads correctly.
Summary
Fixes a typo
occured→occurredin theIoerror variant ofsrc/error.rs.The fix touches the user-facing
Displaystring produced by the#[error(...)]attribute (shown to anyone who prints or logs this error), plus the matching doc comment one line above:No behavior change — spelling only.