util/eventbus: fix docstrings (#16401)

Updates #15160

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
main
Claus Lensbøl 10 months ago committed by GitHub
parent df786be14d
commit 53f67c4396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      util/eventbus/bus.go

@ -40,8 +40,8 @@ type Bus struct {
clients set.Set[*Client]
}
// New returns a new bus. Use [PublisherOf] to make event publishers,
// and [Bus.Queue] and [Subscribe] to make event subscribers.
// New returns a new bus. Use [Publish] to make event publishers,
// and [Subscribe] and [SubscribeFunc] to make event subscribers.
func New() *Bus {
ret := &Bus{
write: make(chan PublishedEvent),

Loading…
Cancel
Save