Skip to content

Commit 54b737a

Browse files
authored
Merge pull request #39 from Icinga/Al2Klimov-patch-1
Fix Cond#Close() documentation
2 parents 715b56e + a7e03a2 commit 54b737a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com/cond.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func (c *Cond) Broadcast() {
4141
}
4242
}
4343

44-
// Close stops the controller loop, waits for it to finish, and returns an error if any.
45-
// Implements the io.Closer interface.
44+
// Close stops the controller loop, waits for it to finish, and returns a nil error.
45+
// Implements the io.Closer interface, hence that return type is required.
4646
func (c *Cond) Close() error {
4747
c.cancel()
4848
<-c.done

0 commit comments

Comments
 (0)