summaryrefslogtreecommitdiff
path: root/_posts/2019-08-02-program-structure-and-composability.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2019-08-02-program-structure-and-composability.md')
-rw-r--r--_posts/2019-08-02-program-structure-and-composability.md2
1 files changed, 1 insertions, 1 deletions
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