From 2adc4e892704bb99f2d16c0c09777987cb6bed35 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 17 Feb 2015 15:44:42 -0800 Subject: all: use "reports whether" in place of "returns true if(f)" Comment changes only. Change-Id: I56848814564c4aa0988b451df18bebdfc88d6d94 Reviewed-on: https://go-review.googlesource.com/7721 Reviewed-by: Rob Pike --- src/text/scanner/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/text') diff --git a/src/text/scanner/scanner.go b/src/text/scanner/scanner.go index 5199ee4fc7..9638577bcf 100644 --- a/src/text/scanner/scanner.go +++ b/src/text/scanner/scanner.go @@ -43,7 +43,7 @@ type Position struct { Column int // column number, starting at 1 (character count per line) } -// IsValid returns true if the position is valid. +// IsValid reports whether the position is valid. func (pos *Position) IsValid() bool { return pos.Line > 0 } func (pos Position) String() string { -- cgit v1.3-5-g9baa