Browse Source

Merge pull request #5009 from xiang90/sp

*: fix misspell
Xiang Li 9 years ago
parent
commit
49f9b5470e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pkg/expect/expect.go
  2. 1 1
      storage/watcher_group.go

+ 1 - 1
pkg/expect/expect.go

@@ -32,7 +32,7 @@ type ExpectProcess struct {
 	wg   sync.WaitGroup
 	wg   sync.WaitGroup
 
 
 	ptyMu sync.Mutex // protects accessing fpty
 	ptyMu sync.Mutex // protects accessing fpty
-	cond  *sync.Cond // for broadcasting updates are avaiable
+	cond  *sync.Cond // for broadcasting updates are available
 	mu    sync.Mutex // protects lines and err
 	mu    sync.Mutex // protects lines and err
 	lines []string
 	lines []string
 	count int // increment whenever new line gets added
 	count int // increment whenever new line gets added

+ 1 - 1
storage/watcher_group.go

@@ -241,7 +241,7 @@ func (wg *watcherGroup) scanMinRev(curRev int64, compactRev int64) int64 {
 	return minRev
 	return minRev
 }
 }
 
 
-// watcherSetByKey gets the set of watchers that recieve events on the given key.
+// watcherSetByKey gets the set of watchers that receive events on the given key.
 func (wg *watcherGroup) watcherSetByKey(key string) watcherSet {
 func (wg *watcherGroup) watcherSetByKey(key string) watcherSet {
 	wkeys := wg.keyWatchers[key]
 	wkeys := wg.keyWatchers[key]
 	wranges := wg.ranges.Stab(adt.NewStringAffinePoint(key))
 	wranges := wg.ranges.Stab(adt.NewStringAffinePoint(key))