Skip to content

Commit

Permalink
Fix README example code comment (#106)
Browse files Browse the repository at this point in the history
Signed-off-by: katsuharu <traveler.18.challenge@gmail.com>
  • Loading branch information
katsuharu committed Mar 24, 2024
1 parent 2e82684 commit 7e286de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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_"`
}
```
Expand Down
4 changes: 2 additions & 2 deletions envconfig_doc_test.go
Expand Up @@ -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_"`
}

Expand Down

0 comments on commit 7e286de

Please sign in to comment.