mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
all: Fix minor typos
This commit is contained in:
2
cache/namedmemcache/named_cache.go
vendored
2
cache/namedmemcache/named_cache.go
vendored
@@ -54,7 +54,7 @@ func (c *Cache) Clear() {
|
||||
// GetOrCreate tries to get the value with the given cache key, if not found
|
||||
// create will be called and cached.
|
||||
// This method is thread safe. It also guarantees that the create func for a given
|
||||
// key is invoced only once for this cache.
|
||||
// key is invoked only once for this cache.
|
||||
func (c *Cache) GetOrCreate(key string, create func() (interface{}, error)) (interface{}, error) {
|
||||
c.mu.RLock()
|
||||
entry, found := c.cache[key]
|
||||
|
Reference in New Issue
Block a user