From 526639041bcd907ef982002b9123d47a58d59e5a Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 2 Feb 2019 19:55:42 -0500 Subject: [PATCH] mnet: make sure listen-addr param's usage starts with uppercase --- mnet/mnet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mnet/mnet.go b/mnet/mnet.go index 577f705..9cb773d 100644 --- a/mnet/mnet.go +++ b/mnet/mnet.go @@ -4,6 +4,7 @@ package mnet import ( "net" + "strings" "github.com/mediocregopher/mediocre-go-lib/mcfg" "github.com/mediocregopher/mediocre-go-lib/mctx" @@ -35,7 +36,7 @@ func MListen(ctx mctx.Context, network, defaultAddr string) *MListener { if defaultAddr == "" { defaultAddr = ":0" } - addr := mcfg.String(ctx, "listen-addr", defaultAddr, network+" address to listen on in format [host]:port. If port is 0 then a random one will be chosen") + addr := mcfg.String(ctx, "listen-addr", defaultAddr, strings.ToUpper(network)+" address to listen on in format [host]:port. If port is 0 then a random one will be chosen") l := new(MListener) l.log = mlog.From(ctx)