From abc3c1b02083efdbef727c8631a865ad7d8d8b19 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 --- ssh/terminal/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/terminal/terminal.go b/ssh/terminal/terminal.go index 5ea89a24..f8167733 100644 --- a/ssh/terminal/terminal.go +++ b/ssh/terminal/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')