Skip to content

Commit

Permalink
Merge pull request #2792 from sbueringer/pr-fix-typo
Browse files Browse the repository at this point in the history
馃尡 Fix typo in channel option
  • Loading branch information
k8s-ci-robot committed Apr 22, 2024
2 parents 5823d1b + 9fb4913 commit 4f00207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ var _ Source = &channel[string]{}
// ChannelOpt allows to configure a source.Channel.
type ChannelOpt[T any] func(*channel[T])

// WithPrededicates adds the configured predicates to a source.Channel.
func WithPrededicates[T any](p ...predicate.TypedPredicate[T]) ChannelOpt[T] {
// WithPredicates adds the configured predicates to a source.Channel.
func WithPredicates[T any](p ...predicate.TypedPredicate[T]) ChannelOpt[T] {
return func(c *channel[T]) {
c.predicates = append(c.predicates, p...)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/source/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ var _ = Describe("Source", func() {
close(c)
},
},
source.WithPrededicates(prct),
source.WithPredicates(prct),
)
err := instance.Start(ctx, q)
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 4f00207

Please sign in to comment.