fixed typo in documentation

This commit is contained in:
2024-08-22 15:59:48 +01:00
parent af2003fa5e
commit 3f38749085

View File

@@ -10,7 +10,7 @@ func Forever[T any](fn func(T)) Subscriber[T] {
}
}
// NoOp creates a sbscriber that does absolutely nothing forever. This is mostly useful for testing.
// NoOp creates a subscriber that does absolutely nothing forever. This is mostly useful for testing.
func NoOp[T any]() Subscriber[T] {
return func(_ T) bool { return true }
}