From 4938331709c1f93b64606bec8ff254dae18a6c7f Mon Sep 17 00:00:00 2001 From: Meysam GanJi Date: Mon, 12 Oct 2020 10:39:31 +0330 Subject: [PATCH] fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 270a481..e33ebcf 100644 --- a/README.md +++ b/README.md @@ -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"), } } ```