Skip to content

Commit c21f2be

Browse files
authored
chore: Correct typos in comments and tests error messages (#3604)
1 parent 9493278 commit c21f2be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

github/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ type PullRequestLinks struct {
136136
}
137137

138138
// IssueType represents the type of issue.
139-
// For now it shows up when receiveing an Issue event.
139+
// For now it shows up when receiving an Issue event.
140140
type IssueType struct {
141141
ID *int64 `json:"id,omitempty"`
142142
NodeID *string `json:"node_id,omitempty"`

github/repos_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ func TestRepositoriesService_GetAutomatedSecurityFixes(t *testing.T) {
676676
ctx := context.Background()
677677
fixes, _, err := client.Repositories.GetAutomatedSecurityFixes(ctx, "o", "r")
678678
if err != nil {
679-
t.Errorf("Repositories.GetAutomatedSecurityFixes returned errpr: #{err}")
679+
t.Errorf("Repositories.GetAutomatedSecurityFixes returned error: #{err}")
680680
}
681681

682682
want := &AutomatedSecurityFixes{
@@ -3342,7 +3342,7 @@ func TestRepositoriesService_OptionalSignaturesOnProtectedBranch(t *testing.T) {
33423342
}
33433343
}
33443344

3345-
func TestPullRequestReviewsEnforcementRequest_MarshalJSON_nilDismissalRestirctions(t *testing.T) {
3345+
func TestPullRequestReviewsEnforcementRequest_MarshalJSON_nilDismissalRestrictions(t *testing.T) {
33463346
t.Parallel()
33473347
req := PullRequestReviewsEnforcementRequest{}
33483348

scrape/forms_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func Test_ParseForms(t *testing.T) {
8989
}
9090
}
9191

92-
func Test_FetchAndSumbitForm(t *testing.T) {
92+
func Test_FetchAndSubmitForm(t *testing.T) {
9393
t.Parallel()
9494
client, mux := setup(t)
9595
var submitted bool

0 commit comments

Comments
 (0)