From 9ea75a85867ba757274bbcdadf77c404d8f9b7b6 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 22 Dec 2014 02:37:46 -0500 Subject: [PATCH] s/NewFrom/NewFrom()/ in Load/LoadFile/Save/SaveFile docs --- cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cache.go b/cache.go index 4c86216..3045c66 100644 --- a/cache.go +++ b/cache.go @@ -828,7 +828,7 @@ func (c *cache) DeleteExpired() { // Write the cache's items (using Gob) to an io.Writer. // // NOTE: This method is deprecated in favor of c.Items() and NewFrom() (see the -// documentation for NewFrom.) +// documentation for NewFrom().) func (c *cache) Save(w io.Writer) (err error) { enc := gob.NewEncoder(w) defer func() { @@ -849,7 +849,7 @@ func (c *cache) Save(w io.Writer) (err error) { // doesn't exist, and overwriting it if it does. // // NOTE: This method is deprecated in favor of c.Items() and NewFrom() (see the -// documentation for NewFrom.) +// documentation for NewFrom().) func (c *cache) SaveFile(fname string) error { fp, err := os.Create(fname) if err != nil { @@ -867,7 +867,7 @@ func (c *cache) SaveFile(fname string) error { // keys that already exist (and haven't expired) in the current cache. // // NOTE: This method is deprecated in favor of c.Items() and NewFrom() (see the -// documentation for NewFrom.) +// documentation for NewFrom().) func (c *cache) Load(r io.Reader) error { dec := gob.NewDecoder(r) items := map[string]*Item{} @@ -889,7 +889,7 @@ func (c *cache) Load(r io.Reader) error { // keys that already exist in the current cache. // // NOTE: This method is deprecated in favor of c.Items() and NewFrom() (see the -// documentation for NewFrom.) +// documentation for NewFrom().) func (c *cache) LoadFile(fname string) error { fp, err := os.Open(fname) if err != nil {