fixed typo

This commit is contained in:
Karl Seguin 2013-11-13 16:17:18 +08:00
parent 92538ee30d
commit fd8650d72b

View file

@ -26,5 +26,5 @@ func newItem(key string, value interface{}, expires time.Time) *Item {
}
func (i *Item) shouldPromote(getsPerPromote int32) bool {
return atomic.AddInt32(&i.promotions, 1) == getsPerPromote {
return atomic.AddInt32(&i.promotions, 1) == getsPerPromote
}