Fix some typos in the English locale (fixes #4663) (#4793)

Этот коммит содержится в:
Pierre Rudloff
2016-12-21 23:29:38 +01:00
коммит произвёл enahum
родитель 25d40bc98c
Коммит 56dc863de1
11 изменённых файлов: 88 добавлений и 88 удалений

Просмотреть файл

@@ -68,7 +68,7 @@ func (c *Cache) Add(key, value interface{}) bool {
return c.AddWithExpiresInSecs(key, value, 0)
}
// Add adds a value to the cache. Returns true if an eviction occured.
// Add adds a value to the cache. Returns true if an eviction occurred.
func (c *Cache) AddWithExpiresInSecs(key, value interface{}, expireAtSecs int64) bool {
c.lock.Lock()
defer c.lock.Unlock()

Просмотреть файл

@@ -73,7 +73,7 @@ func TestLRU(t *testing.T) {
}
}
// test that Add return true/false if an eviction occured
// test that Add return true/false if an eviction occurred
func TestLRUAdd(t *testing.T) {
evictCounter := 0
onEvicted := func(k interface{}, v interface{}) {