Skip to content

raiting: Fix typo: RaingState → RaitingState in rating.rs - #2744

Merged
huacnlee merged 2 commits into
mainfrom
copilot/fix-typo-raingstate
Aug 17, 2026
Merged

raiting: Fix typo: RaingState → RaitingState in rating.rs#2744
huacnlee merged 2 commits into
mainfrom
copilot/fix-typo-raingstate

Conversation

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Fixes a typo in the internal struct name RaingStateRaitingState in crates/ui/src/rating.rs.

Description

Renamed the misspelled private struct RaingState to RaitingState (two occurrences: struct definition and instantiation site).

Screenshot

N/A — internal rename, no visual change.

How to Test

No behavioral change. The struct is private; verify with cargo build -p gpui-component.

Checklist

  • I have read the CONTRIBUTING document and followed the guidelines.
  • Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate.
  • Passed cargo run for story tests related to the changes.
  • Tested macOS, Windows and Linux platforms performance (if the change is platform-specific)

Copilot AI linked an issue Aug 17, 2026 that may be closed by this pull request
Co-authored-by: huacnlee <5518+huacnlee@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix typo: RaingState should be RaitingState Fix typo: RaingState → RaitingState in rating.rs Aug 17, 2026
Copilot AI requested a review from huacnlee August 17, 2026 00:31
@huacnlee
huacnlee marked this pull request as ready for review August 17, 2026 01:46
@huacnlee huacnlee changed the title Fix typo: RaingState → RaitingState in rating.rs raiting: Fix typo: RaingState → RaitingState in rating.rs Aug 17, 2026
@huacnlee

Copy link
Copy Markdown
Member

@copilot Your are missed to change story, docs?

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Your are missed to change story, docs?

RaingState is a private internal struct only referenced within rating.rs — it doesn't appear in the story (rating_story.rs) or docs (website/docs/components/rating.md, website/zh-CN/docs/components/rating.md). The two occurrences in rating.rs (struct definition + instantiation) have both been renamed to RaitingState. No other files need updating.

@huacnlee
huacnlee merged commit b29ee13 into main Aug 17, 2026
4 checks passed
@huacnlee
huacnlee deleted the copilot/fix-typo-raingstate branch August 17, 2026 03:54
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.

Typo: RaingState should be RaitingState

2 participants