From 7e286de0bac3936b1739794b1fefad72021c8bef Mon Sep 17 00:00:00 2001 From: Katsuharu Sasaki Date: Mon, 25 Mar 2024 05:32:33 +0900 Subject: [PATCH] Fix README example code comment (#106) Signed-off-by: katsuharu --- README.md | 4 ++-- envconfig_doc_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4092a4e..49c2fe1 100644 --- a/README.md +++ b/README.md @@ -104,11 +104,11 @@ examples. type ServerConfig struct { // CacheConfig will process values from $CACHE_REDIS_HOST and - // $CACHE_REDIS respectively. + // $CACHE_REDIS_USER respectively. CacheConfig *RedisConfig `env:", prefix=CACHE_"` // RateLimitConfig will process values from $RATE_LIMIT_REDIS_HOST and - // $RATE_LIMIT_REDIS respectively. + // $RATE_LIMIT_REDIS_USER respectively. RateLimitConfig *RedisConfig `env:", prefix=RATE_LIMIT_"` } ``` diff --git a/envconfig_doc_test.go b/envconfig_doc_test.go index c1708da..98ccc74 100644 --- a/envconfig_doc_test.go +++ b/envconfig_doc_test.go @@ -134,11 +134,11 @@ func Example_prefix() { type ServerConfig struct { // CacheConfig will process values from $CACHE_REDIS_HOST and - // $CACHE_REDIS respectively. + // $CACHE_REDIS_USER respectively. CacheConfig *RedisConfig `env:", prefix=CACHE_"` // RateLimitConfig will process values from $RATE_LIMIT_REDIS_HOST and - // $RATE_LIMIT_REDIS respectively. + // $RATE_LIMIT_REDIS_USER respectively. RateLimitConfig *RedisConfig `env:", prefix=RATE_LIMIT_"` }