util/eventbus: fix docstrings (#16401)

Updates #15160

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
This commit is contained in:
Claus Lensbøl 2025-06-27 10:03:56 -04:00 committed by GitHub
parent df786be14d
commit 53f67c4396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),