Skip to content

Commit

Permalink
Merge pull request moby#48279 from thaJeztah/typo_fixes
Browse files Browse the repository at this point in the history
plugin, api/types: fix typos and GoDoc
  • Loading branch information
thaJeztah authored Jul 31, 2024
2 parents a43ed47 + ac145a8 commit bd1d35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/types/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/docker/docker/api/types/registry"
)

// NewHijackedResponse intializes a HijackedResponse type
// NewHijackedResponse initializes a [HijackedResponse] type.
func NewHijackedResponse(conn net.Conn, mediaType string) HijackedResponse {
return HijackedResponse{Conn: conn, Reader: bufio.NewReader(conn), mediaType: mediaType}
}
Expand Down
6 changes: 3 additions & 3 deletions plugin/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (e EventCreate) matches(observed Event) bool {
}

// EventRemove is an event which is emitted when a plugin is removed
// It maches on the passed in plugin's ID only.
// It matches on the passed in plugin's ID only.
type EventRemove struct {
Plugin types.Plugin
}
Expand All @@ -58,7 +58,7 @@ func (e EventRemove) matches(observed Event) bool {
}

// EventDisable is an event that is emitted when a plugin is disabled
// It maches on the passed in plugin's ID only.
// It matches on the passed in plugin's ID only.
type EventDisable struct {
Plugin types.Plugin
}
Expand All @@ -72,7 +72,7 @@ func (e EventDisable) matches(observed Event) bool {
}

// EventEnable is an event that is emitted when a plugin is disabled
// It maches on the passed in plugin's ID only.
// It matches on the passed in plugin's ID only.
type EventEnable struct {
Plugin types.Plugin
}
Expand Down

0 comments on commit bd1d35d

Please sign in to comment.