From ecafe2922af8c7657c30732e212144403895b23a Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 23 Jun 2019 12:55:27 -0600 Subject: [PATCH] mnet: fix some comments --- mnet/mnet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mnet/mnet.go b/mnet/mnet.go index 23e4d2b..59f1be4 100644 --- a/mnet/mnet.go +++ b/mnet/mnet.go @@ -15,7 +15,7 @@ import ( "github.com/mediocregopher/mediocre-go-lib/mrun" ) -// Listener is returned by WithListen and simply wraps a net.Listener. +// Listener is returned by InstListener and simply wraps a net.Listener. type Listener struct { // One of these will be populated during the start hook, depending on the // protocol configured. @@ -38,7 +38,7 @@ func (lOpts listenerOpts) isPacketConn() bool { strings.HasPrefix(proto, "ip") } -// ListenerOpt is a value which adjusts the behavior of WithListener. +// ListenerOpt is a value which adjusts the behavior of InstListener. type ListenerOpt func(*listenerOpts) // ListenerProtocol adjusts the protocol which the Listener uses. The default is