fix typo in program structure post

This commit is contained in:
Brian Picciano 2019-09-10 12:16:22 -04:00
parent d9cb732435
commit 0b9543c6cd

View File

@ -363,7 +363,7 @@ of `Component`. Then `redis.NewConn` is reduced to:
func NewConn(cmp *mcmp.Component, defaultAddr string) *RedisConn {
cmp = cmp.Child("redis")
addrParam := flag.String(cmp, "-addr", defaultAddr, "Address of redis instance to connect to")
addrParam := mcfg.String(cmp, "addr", defaultAddr, "Address of redis instance to connect to")
// finish setup
return redisConn