Skip to content

Commit

Permalink
Fix documentation typo for SetClosedHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
tormoder committed Jan 6, 2022
1 parent e5a5689 commit 328101d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats.go
Expand Up @@ -1191,7 +1191,7 @@ func (nc *Conn) SetDiscoveredServersHandler(dscb ConnHandler) {
nc.Opts.DiscoveredServersCB = dscb
}

// SetClosedHandler will set the reconnect event handler.
// SetClosedHandler will set the closed event handler.
func (nc *Conn) SetClosedHandler(cb ConnHandler) {
if nc == nil {
return
Expand Down

0 comments on commit 328101d

Please sign in to comment.