Skip to content

Commit 3475bc8

Browse files
cuishuanggopherbot
authored andcommitted
term: fix some comments
Change-Id: I8211158071d0a657d0097aba242278fa4bc7f653 Reviewed-on: https://go-review.googlesource.com/c/term/+/713420 Auto-Submit: Sean Liao <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 3a0828a commit 3475bc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

terminal.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (t *Terminal) eraseNPreviousChars(n int) {
413413
}
414414
}
415415

416-
// countToLeftWord returns then number of characters from the cursor to the
416+
// countToLeftWord returns the number of characters from the cursor to the
417417
// start of the previous word.
418418
func (t *Terminal) countToLeftWord() int {
419419
if t.pos == 0 {
@@ -438,7 +438,7 @@ func (t *Terminal) countToLeftWord() int {
438438
return t.pos - pos
439439
}
440440

441-
// countToRightWord returns then number of characters from the cursor to the
441+
// countToRightWord returns the number of characters from the cursor to the
442442
// start of the next word.
443443
func (t *Terminal) countToRightWord() int {
444444
pos := t.pos
@@ -478,7 +478,7 @@ func visualLength(runes []rune) int {
478478
return length
479479
}
480480

481-
// histroryAt unlocks the terminal and relocks it while calling History.At.
481+
// historyAt unlocks the terminal and relocks it while calling History.At.
482482
func (t *Terminal) historyAt(idx int) (string, bool) {
483483
t.lock.Unlock() // Unlock to avoid deadlock if History methods use the output writer.
484484
defer t.lock.Lock() // panic in At (or Len) protection.

0 commit comments

Comments
 (0)