-
Notifications
You must be signed in to change notification settings - Fork 60
Fix typos and grammar in docstrings #1152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typos and grammar in docstrings #1152
Conversation
Summary of ChangesHello @vojtechtrefny, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the quality and readability of the codebase's documentation by addressing minor linguistic and formatting issues. The changes include correcting spelling mistakes, rectifying grammatical errors, and eliminating unnecessary whitespace within docstrings, ensuring that the embedded documentation is clear, precise, and consistent. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
WalkthroughSeveral documentation/comment-only edits across loop, NVMe and SMART plugins and associated plugin API files; fixes are typographic and formatting-only. No code, behavior, API signatures, or error handling were changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly fixes several typos, grammatical errors, and extra spaces in the documentation comments. The changes are appreciated and improve the overall quality of the code's documentation. However, the fixes appear to be incomplete. I've noticed that the same errors are present in the corresponding .api files (e.g., src/lib/plugin_apis/loop.api, src/lib/plugin_apis/nvme.api, and src/lib/plugin_apis/smart.api), which were not part of this pull request. For instance, 'Selfpereserving' was corrected in src/plugins/smart/smart.h but remains in src/lib/plugin_apis/smart.api. To ensure consistency across the codebase, I recommend updating these .api files as well, possibly in this same pull request.
Fixed spelling errors ("give" -> "given", "Selfpereserving" -> "Self-preserving"),
grammar errors ("an new" -> "a new"), and removed extra spaces in documentation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
c8b0cea to
d7bd9f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/lib/plugin_apis/nvme.api (1)
1270-1278: Minor grammar tweak for @transport_svcid description (optional)The current text is understandable but slightly off grammatically (“port number … is
4420and8009respectively”). Consider this wording instead:- * @transport_svcid: (nullable): The transport service ID. For transports using IP addressing (e.g. `tcp`, `rdma`) this field is the port number. The default port number for the `tcp` and `rdma` transports is `4420` and `8009` respectively when the well-known Discovery NQN is specified. + * @transport_svcid: (nullable): The transport service ID. For transports using IP addressing (e.g. `tcp`, `rdma`) this field is the port number. The default port numbers for the `tcp` and `rdma` transports are `4420` and `8009`, respectively, when the well-known Discovery NQN is specified.If you prefer not to touch this again in this PR, it’s safe to leave as-is.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (8)
src/lib/plugin_apis/loop.api(1 hunks)src/lib/plugin_apis/nvme.api(2 hunks)src/lib/plugin_apis/smart.api(2 hunks)src/plugins/loop.c(1 hunks)src/plugins/loop.h(1 hunks)src/plugins/nvme/nvme-fabrics.c(1 hunks)src/plugins/nvme/nvme.h(1 hunks)src/plugins/smart/smart.h(2 hunks)
✅ Files skipped from review due to trivial changes (2)
- src/lib/plugin_apis/loop.api
- src/lib/plugin_apis/smart.api
🚧 Files skipped from review as they are similar to previous changes (4)
- src/plugins/loop.c
- src/plugins/loop.h
- src/plugins/nvme/nvme.h
- src/plugins/nvme/nvme-fabrics.c
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (16)
- GitHub Check: compilation (gcc-10)
- GitHub Check: compilation (clang-18)
- GitHub Check: compilation (clang-14)
- GitHub Check: compilation (clang-17)
- GitHub Check: compilation (gcc-14)
- GitHub Check: compilation (gcc-12)
- GitHub Check: compilation (gcc-11)
- GitHub Check: compilation (clang-16)
- GitHub Check: compilation (gcc-13)
- GitHub Check: compilation (clang-15)
- GitHub Check: Analyze (cpp)
- GitHub Check: blivet-tests
- GitHub Check: csmock
- GitHub Check: udisks-build
- GitHub Check: Analyze (python)
- GitHub Check: symbols
🔇 Additional comments (2)
src/plugins/smart/smart.h (1)
138-146: Docstring spelling/spacing fixes look good
BD_SMART_ATA_ATTRIBUTE_FLAG_SELF_PRESERVINGdescription now has correct “Self-preserving” spelling, and the NV cache degraded power informational-exception text reads cleanly with consistent spacing. No API or semantic impact.Also applies to: 232-243
src/lib/plugin_apis/nvme.api (1)
451-457: NVMe SMART degraded-warning description is clear and correctThe updated
BD_NVME_SMART_CRITICAL_WARNING_DEGRADEDtext is grammatically sound and matches expected NVMe semantics; this is a harmless formatting/clarity improvement only.
Fixed spelling errors ("give" -> "given", "Selfpereserving" -> "Self-preserving"), grammar errors ("an new" -> "a new"), and removed extra spaces in documentation.
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.