-
Notifications
You must be signed in to change notification settings - Fork 53
Fix typo from commited
to committed
#175
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
base: master
Are you sure you want to change the base?
Fix typo from commited
to committed
#175
Conversation
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.
Pull Request Overview
This PR fixes typos in the code comments and error messages by correcting "commited" to "committed."
- Updated a comment in the raft test file.
- Corrected a comment in the Raft source file.
- Fixed two error message strings in the inflight test file.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
internal/raft/raft_test.go | Updated typo in a comment regarding snapshots. |
internal/raft/raft.go | Corrected typo in a comment about snapshots. |
internal/raft/inflight_test.go | Fixed typos in error messages in tests. |
Comments suppressed due to low confidence (1)
internal/raft/raft_test.go:1392
- Typo detected: replace 'commited' with 'committed' in the comment.
// with nothing commited, asking for a snapshot should return an error
@@ -51,7 +51,7 @@ var ( | |||
ErrUnknownPeer = errors.New("peer is unknown") | |||
|
|||
// ErrNothingNewToSnapshot is returned when trying to create a snapshot | |||
// but there's nothing new commited to the FSM since we started. | |||
// but there's nothing new committed to the FSM since we started. |
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.
Typo fix confirmed: the correction from 'commited' to 'committed' is correct.
Copilot uses AI. Check for mistakes.
@@ -17,12 +17,12 @@ func TestInflight_StartCommit(t *testing.T) { | |||
// Commit 3 times | |||
in.Commit(1) | |||
if in.Committed().Len() != 0 { | |||
t.Fatalf("should not be commited") | |||
t.Fatalf("should not be committed") |
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.
Typo corrected: ensure 'commited' is replaced with 'committed' in the error message.
Copilot uses AI. Check for mistakes.
} | ||
|
||
in.Commit(1) | ||
if in.Committed().Len() != 1 { | ||
t.Fatalf("should be commited") | ||
t.Fatalf("should be committed") |
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.
Typo corrected: ensure 'commited' is replaced with 'committed' in the error message.
Copilot uses AI. Check for mistakes.
Fix typo from
commited
tocommitted