From a1dd6b7fff3721ded6d8d32901b000637013a806 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 22 Dec 2014 02:39:59 -0500 Subject: [PATCH] s/NewFrom/NewFrom()/ in NewFrom doc --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 3045c66..1f498ac 100644 --- a/cache.go +++ b/cache.go @@ -1002,7 +1002,7 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache { // manually. If the cleanup interval is less than one, expired items are not // deleted from the cache before calling c.DeleteExpired(). // -// NewFrom also accepts an items map which will serve as the underlying map +// NewFrom() also accepts an items map which will serve as the underlying map // for the cache. This is useful for starting from a deserialized cache // (serialized using e.g. gob.Encode() on c.Items()), or passing in e.g. // make(map[string]*Item, 500) to improve startup performance when the cache