File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type Pinger struct {
2222// only given address, pinging different address would result in error.
2323//
2424// To enable receiving packets, Listen() should be called on returned Pinger.
25- // Close() should be called after Listen() returns if Pinger is no more needed .
25+ // Close() should be called after Listen() returns.
2626func New (laddr * net.UDPAddr , dst net.IP ) (* Pinger , error ) {
2727 c , proto , err := newConn (laddr , dst )
2828 if err != nil {
@@ -63,8 +63,8 @@ func (p *Pinger) Close() error {
6363 return p .c .Close ()
6464}
6565
66- // Listen should be called to start receiving of incomming replies
67- // and route them into calling Ping* method, so no Ping*() methods should be
66+ // Listen should be called to start receiving of incomming replies and route
67+ // them into calling Pinger. Ping* method, so no Pinger. Ping*() methods should be
6868// called before Listen and after it returns.
6969// It is a blocking call, so it should be run as a separate goroutine.
7070// It returns a non-nil error if context is done or an error occured
You can’t perform that action at this time.
0 commit comments