From 873e78f0dbe9894b0b5e41d9f25751d78376f05e Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 22 Dec 2014 02:30:02 -0500 Subject: [PATCH] s/gob.Register/gob.Register()/ in NewFrom doc --- cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cache.go b/cache.go index 2d53187..4c86216 100644 --- a/cache.go +++ b/cache.go @@ -1013,10 +1013,10 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache { // If need be, the map can be accessed at a later point using c.Items() (subject // to the same caveat.) // -// Note regarding serialization: When using e.g. gob, make sure to gob.Register -// the individual types stored in the cache before encoding a map retrieved with -// c.Items(), and to register those same types before decoding a blob containing -// an items map. +// Note regarding serialization: When using e.g. gob, make sure to +// gob.Register() the individual types stored in the cache before encoding a +// map retrieved with c.Items(), and to register those same types before +// decoding a blob containing an items map. func NewFrom(defaultExpiration, cleanupInterval time.Duration, items map[string]*Item) *Cache { return newCacheWithJanitor(defaultExpiration, cleanupInterval, items) }