Skip to content

Commit fde7f38

Browse files
authored
Merge pull request #339 from atoato88/fix-typo
🐛 Fix typos in comment
2 parents 6100e07 + 7e49ddd commit fde7f38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Controller interface {
5050
//
5151
// Watch may be provided one or more Predicates to filter events before
5252
// they are given to the EventHandler. Events will be passed to the
53-
// EventHandler iff all provided Predicates evaluate to true.
53+
// EventHandler if all provided Predicates evaluate to true.
5454
Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error
5555

5656
// Start starts the controller. Start blocks until stop is closed or a

pkg/source/internal/eventsource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type EventHandler struct {
4242
Predicates []predicate.Predicate
4343
}
4444

45-
// OnAdd creates and CreateEvent and calls Create on EventHandler
45+
// OnAdd creates CreateEvent and calls Create on EventHandler
4646
func (e EventHandler) OnAdd(obj interface{}) {
4747
c := event.CreateEvent{}
4848

@@ -74,7 +74,7 @@ func (e EventHandler) OnAdd(obj interface{}) {
7474
e.EventHandler.Create(c, e.Queue)
7575
}
7676

77-
// OnUpdate creates and UpdateEvent and calls Update on EventHandler
77+
// OnUpdate creates UpdateEvent and calls Update on EventHandler
7878
func (e EventHandler) OnUpdate(oldObj, newObj interface{}) {
7979
u := event.UpdateEvent{}
8080

@@ -124,7 +124,7 @@ func (e EventHandler) OnUpdate(oldObj, newObj interface{}) {
124124
e.EventHandler.Update(u, e.Queue)
125125
}
126126

127-
// OnDelete creates and DeleteEvent and calls Delete on EventHandler
127+
// OnDelete creates DeleteEvent and calls Delete on EventHandler
128128
func (e EventHandler) OnDelete(obj interface{}) {
129129
d := event.DeleteEvent{}
130130

0 commit comments

Comments
 (0)