Fix various typos in codebase (#35480)

This commit is contained in:
luzpaz
2025-09-13 10:34:43 -04:00
committed by GitHub
parent 325e059a50
commit 688abac5ca
26 changed files with 30 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ import (
type StateType string
const (
// StateOpen pr is opend
// StateOpen pr is opened
StateOpen StateType = "open"
// StateClosed pr is closed
StateClosed StateType = "closed"

View File

@@ -319,7 +319,7 @@ const (
)
// Name represents the service type's name
// WARNNING: the name have to be equal to that on goth's library
// WARNING: the name has to be equal to that on goth's library
func (gt GitServiceType) Name() string {
return strings.ToLower(gt.Title())
}

View File

@@ -61,7 +61,7 @@ type User struct {
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility
func (u User) MarshalJSON() ([]byte, error) {
// Re-declaring User to avoid recursion
// Redeclaring User to avoid recursion
type shadow User
return json.Marshal(struct {
shadow