diff --git a/_posts/2019-08-02-program-structure-and-composability.md b/_posts/2019-08-02-program-structure-and-composability.md index e965684..3f8281a 100644 --- a/_posts/2019-08-02-program-structure-and-composability.md +++ b/_posts/2019-08-02-program-structure-and-composability.md @@ -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