s/with the same caveats/subject to the same caveat/ in NewFrom doc

This commit is contained in:
Patrick Mylund Nielsen 2014-12-22 02:09:42 -05:00
parent 887753fa90
commit d68800e607
1 changed files with 2 additions and 2 deletions

View File

@ -1010,8 +1010,8 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache {
//
// Only the cache's methods synchronize access to this map, so it is not
// recommended to keep any references to the map around after creating a cache.
// If need be, the map can be accessed at a later point using c.Items() (with
// the same caveats.)
// 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