From 9c8b2412920400ed7cb24efc3d2006ce6407d5f8 Mon Sep 17 00:00:00 2001 From: mjarkk Date: Tue, 6 Nov 2018 20:37:59 +0100 Subject: [PATCH] Removed some useless comments --- pkg/commands/exec_live_default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/commands/exec_live_default.go b/pkg/commands/exec_live_default.go index e717d972d..88a80addb 100644 --- a/pkg/commands/exec_live_default.go +++ b/pkg/commands/exec_live_default.go @@ -86,6 +86,7 @@ func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(s } // scanWordsWithNewLines is a copy of bufio.ScanWords but this also captures new lines +// For specific comments about this function take a look at: bufio.ScanWords func scanWordsWithNewLines(data []byte, atEOF bool) (advance int, token []byte, err error) { start := 0 for width := 0; start < len(data); start += width { @@ -108,10 +109,10 @@ func scanWordsWithNewLines(data []byte, atEOF bool) (advance int, token []byte, return start, nil, nil } -// isSpace is also copied form bufio.ScanWords and has been modiefied to also captures new lines +// isSpace is also copied from the bufio package and has been modified to also captures new lines +// For specific comments about this function take a look at: bufio.isSpace func isSpace(r rune) bool { if r <= '\u00FF' { - // Obvious ASCII ones: \t through \r plus space. Plus two Latin-1 oddballs. switch r { case ' ', '\t', '\v', '\f': return true @@ -120,7 +121,6 @@ func isSpace(r rune) bool { } return false } - // High-valued ones. if '\u2000' <= r && r <= '\u200a' { return true }