diff options
author | Pierre Rudloff <contact@rudloff.pro> | 2016-12-21 23:29:38 +0100 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-21 19:29:38 -0300 |
commit | 56dc863de14da2c5d6b897352e91384a91a40f94 (patch) | |
tree | 71469a5425323033b37810ac03a80c9ec141b83f /utils | |
parent | 25d40bc98c71f526c256076f0c21c04bbb4e99e7 (diff) | |
download | chat-56dc863de14da2c5d6b897352e91384a91a40f94.tar.gz chat-56dc863de14da2c5d6b897352e91384a91a40f94.tar.bz2 chat-56dc863de14da2c5d6b897352e91384a91a40f94.zip |
Fix some typos in the English locale (fixes #4663) (#4793)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lru.go | 2 | ||||
-rw-r--r-- | utils/lru_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/lru.go b/utils/lru.go index f5f7959d8..41ba72d71 100644 --- a/utils/lru.go +++ b/utils/lru.go @@ -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() diff --git a/utils/lru_test.go b/utils/lru_test.go index 3255f5c1a..ab7d0e50a 100644 --- a/utils/lru_test.go +++ b/utils/lru_test.go @@ -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{}) { |