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_"` }