From c84223dab485b9db6395b08968a8056d3504b667 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 2 Jan 2012 17:26:17 +0100 Subject: [PATCH] Typo --- cache.go | 8 ++++---- cache_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cache.go b/cache.go index 7ce43bf..f784b66 100644 --- a/cache.go +++ b/cache.go @@ -288,10 +288,10 @@ func stopJanitor(c *Cache) { } // Returns a new cache with a given default expiration duration and default cleanup -// interval. If the expiration duration is less than 1, the items in the cache never expire -// and have to be deleted manually. If the cleanup interval is less than one, expired -// items are not deleted from the cache before their next lookup or before calling -// DeleteExpired. +// interval. If the expiration duration is less than 1, the items in the cache never +// expire and must be deleted manually. If the cleanup interval is less than one, +// expired items are not deleted from the cache before their next lookup or before +// calling DeleteExpired. func New(de, ci time.Duration) *Cache { if de == 0 { de = -1 diff --git a/cache_test.go b/cache_test.go index 925c46a..bc9b6a4 100644 --- a/cache_test.go +++ b/cache_test.go @@ -339,7 +339,7 @@ func TestDecrementInt64(t *testing.T) { tc.Set("int64", int64(5), 0) err := tc.Decrement("int64", 2) if err != nil { - t.Error("Error incrementing:", err) + t.Error("Error decrementing:", err) } x, found := tc.Get("int64") if !found {