Skip to content

Commit

Permalink
Merge pull request #877 from tormoder/set-closed-handler-doc-typo
Browse files Browse the repository at this point in the history
Fix documentation typo for SetClosedHandler
  • Loading branch information
derekcollison committed Jan 6, 2022
2 parents e5a5689 + 328101d commit ebcdff6
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 ebcdff6

Please sign in to comment.