Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
meysampg authored and sagikazarmark committed Oct 12, 2020
1 parent 8c89438 commit 4938331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ Internally, the `NewCache` function can address `max-items` and `item-size` keys
```go
func NewCache(v *Viper) *Cache {
return &Cache{
MaxItems: c.GetInt("max-items"),
ItemSize: c.GetInt("item-size"),
MaxItems: v.GetInt("max-items"),
ItemSize: v.GetInt("item-size"),
}
}
```
Expand Down

0 comments on commit 4938331

Please sign in to comment.