aboutsummaryrefslogtreecommitdiff
path: root/src/time/format.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-02-17 15:44:42 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2015-03-18 15:14:06 +0000
commit2adc4e892704bb99f2d16c0c09777987cb6bed35 (patch)
tree4e61f69a0e448b82df4e1c7c8c621f397298e7b9 /src/time/format.go
parentfcb895feef1c9214f9cb633b5a0fa4dc8f46af9e (diff)
downloadgo-2adc4e892704bb99f2d16c0c09777987cb6bed35.tar.xz
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 <r@golang.org>
Diffstat (limited to 'src/time/format.go')
-rw-r--r--src/time/format.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/time/format.go b/src/time/format.go
index 0325399132..3d2ff37df0 100644
--- a/src/time/format.go
+++ b/src/time/format.go
@@ -288,7 +288,7 @@ var longMonthNames = []string{
"December",
}
-// match returns true if s1 and s2 match ignoring case.
+// match reports whether s1 and s2 match ignoring case.
// It is assumed s1 and s2 are the same length.
func match(s1, s2 string) bool {
for i := 0; i < len(s1); i++ {
@@ -620,8 +620,7 @@ func (e *ParseError) Error() string {
quote(e.Value) + e.Message
}
-// isDigit returns true if s[i] is a decimal digit, false if not or
-// if s[i] is out of range.
+// isDigit reports whether s[i] is in range and is a decimal digit.
func isDigit(s string, i int) bool {
if len(s) <= i {
return false