-
Notifications
You must be signed in to change notification settings - Fork 182
chore: fix a large number of spelling issues in comments #6088
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
Conversation
Signed-off-by: joemicky <joemickychang@outlook.com>
WalkthroughMultiple files were updated to correct typos in comments, documentation, and error messages. No functional logic, control flow, tests, or public APIs were changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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.
Actionable comments posted: 0
🧹 Nitpick comments (6)
src/rpc/reflect/parser.rs (1)
1-399: Consider adding automated spell‑check in CI.Given the nature of this PR, add a repo‑wide spell checker (e.g., typos/codespell) and a pre‑commit hook to prevent regressions.
src/libp2p_bitswap/request_manager.rs (1)
70-71: Minor grammar tweak in the updated comment.“other type of requests” → “other types of requests”.
Apply this diff:
- // Use separate channels here to not block `block` requests when too many other type of requests are queued. + // Use separate channels here to not block `block` requests when too many other types of requests are queued.src/tool/subcommands/api_cmd/api_compare_tests.rs (1)
1196-1204: Fix residual typo in nearby comment.“invocking” → “invoking”.
Apply this diff:
- // Both Forest and Lotus should fail miserably at invocking Cthulhu's name + // Both Forest and Lotus should fail miserably at invoking Cthulhu's namesrc/rpc/methods/f3/types.rs (1)
371-374: Fix typo in constant string.“indexing slicling” → “indexing/slicing”.
Apply this diff:
- const INDEXING_SLICING_ERROR: &str = "unexpected overflow in indexing slicling"; + const INDEXING_SLICING_ERROR: &str = "unexpected overflow in indexing/slicing";src/message_pool/msgpool/selection.rs (2)
524-526: Fix minor typo in comment.“hae” → “have”.
Apply this diff:
- // 7. We have reached the edge of what can fit wholesale; if we still hae + // 7. We have reached the edge of what can fit wholesale; if we still have
1303-1311: Fix minor typo in comment.“uneselectable” → “unselectable”.
Apply this diff:
- // address 2 (uneselectable) message is worth so much! + // address 2 (unselectable) message is worth so much!
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
src/libp2p_bitswap/internals/event_handlers.rs(1 hunks)src/libp2p_bitswap/request_manager.rs(1 hunks)src/message_pool/msgpool/msg_pool.rs(1 hunks)src/message_pool/msgpool/selection.rs(2 hunks)src/rpc/methods/f3/types.rs(1 hunks)src/rpc/reflect/parser.rs(1 hunks)src/tool/subcommands/api_cmd/api_compare_tests.rs(1 hunks)
🔇 Additional comments (7)
src/rpc/reflect/parser.rs (1)
279-284: Typo fix LGTM.Comment spelling correction is accurate; no behavior change.
src/libp2p_bitswap/internals/event_handlers.rs (1)
16-16: Typo fix LGTM.“Synchronously” reads correctly; no code changes.
src/tool/subcommands/api_cmd/api_compare_tests.rs (1)
1994-1996: Typo fix LGTM.“guaranteed” spelling fix only; no behavioral impact.
src/rpc/methods/f3/types.rs (1)
415-416: Error message spelling fix LGTM.“offset” is correct; logic unchanged.
src/message_pool/msgpool/selection.rs (2)
1473-1475: Typo fix LGTM.“chain dependent” wording is fine; comment‑only change.
1559-1562: Typo fix LGTM.“chain dependent” correction in test comment looks good.
src/message_pool/msgpool/msg_pool.rs (1)
389-396: Doc tweak LGTM.Clarifies that results are sorted by each message’s sequence; matches implementation below.
|
Thanks! |
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Summary by CodeRabbit
No functional changes or public API modifications.