From 0b9543c6cd6e7f65317284e759bb3df93c84c8d7 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 10 Sep 2019 12:16:22 -0400 Subject: fix typo in program structure post --- _posts/2019-08-02-program-structure-and-composability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3