fix docstrings

This commit is contained in:
onyx-and-iris 2022-12-15 11:27:39 +00:00
parent 8038670203
commit 418d04a08e

View File

@ -20,7 +20,7 @@ func newObserver(vm *voicemeeter.Remote) *observer {
return &observer{vm, make(chan string)} return &observer{vm, make(chan string)}
} }
// Listen registers the observer channel and listens for udpates. // Listen registers the observer channel and listens for updates.
func (o observer) Listen() { func (o observer) Listen() {
o.vm.Register(o.events) o.vm.Register(o.events)
@ -53,8 +53,7 @@ func runObserver(vm *voicemeeter.Remote) {
go o.Listen() go o.Listen()
} }
// main connects to Voiceemeter, registers observer for updates // main connects to Voiceemeter and runs a single observer for 30 seconds.
// runs updates for 30 seconds and then deregisters observer.
func main() { func main() {
vm, err := vmConnect() vm, err := vmConnect()
if err != nil { if err != nil {