Fix typo in code

This commit is contained in:
Junegunn Choi committed 2015-02-17 19:28:10 +09:00
1 parent 1b5599972a
commit d760b790b3
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ func (events *Events) Clear() {
}
}
// Peak peaks at the event box if the given event is set
func (b *EventBox) Peak(event EventType) bool {
// Peek peeks at the event box if the given event is set
func (b *EventBox) Peek(event EventType) bool {
b.cond.L.Lock()
defer b.cond.L.Unlock()
_, ok := b.events[event]