From 426ef97d77f2e267f814774031e63ae12bc88459 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Mon, 19 Dec 2016 06:06:48 +0900 Subject: [PATCH] ssh/terminal: fix a typo Change-Id: Iafe2ebb6d37afd2a64aa72750a722d4860bb735e Reviewed-on: https://go-review.googlesource.com/34535 Run-TryBot: Mikio Hara TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.go b/terminal.go index 5ea89a2..f816773 100644 --- a/terminal.go +++ b/terminal.go @@ -596,7 +596,7 @@ func (t *Terminal) writeLine(line []rune) { } } -// writeWithCRLF writes buf to w but replaces all occurances of \n with \r\n. +// writeWithCRLF writes buf to w but replaces all occurrences of \n with \r\n. func writeWithCRLF(w io.Writer, buf []byte) (n int, err error) { for len(buf) > 0 { i := bytes.IndexByte(buf, '\n')