aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Shaposhnikov <k.shaposhnikov@gmail.com>2015-09-08 19:26:02 +0800
committerRob Pike <r@golang.org>2015-09-09 05:07:52 +0000
commit49fb8cc10c2d61ebdf3829f42bba9bec7b0a7ff7 (patch)
treef4d301cf266ee06667f745d927901b5e33532123 /src
parent0cf7331391ba9ceb7ae755ca9172ba90f6ac516b (diff)
downloadgo-49fb8cc10c2d61ebdf3829f42bba9bec7b0a7ff7.tar.xz
all: minor documentation tweaks for constants
Block comments appear after a block in the HTML documentation generated by godoc. Words like "following" should be avoided. Change-Id: Iedfad67f4b8b9c84f128b98b9b06fa76919af388 Reviewed-on: https://go-review.googlesource.com/14357 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/go/types/type.go2
-rw-r--r--src/math/big/float.go2
-rw-r--r--src/text/scanner/scanner.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/go/types/type.go b/src/go/types/type.go
index 1df8b45b28..b93039abd8 100644
--- a/src/go/types/type.go
+++ b/src/go/types/type.go
@@ -360,7 +360,7 @@ type Chan struct {
// A ChanDir value indicates a channel direction.
type ChanDir int
-// The direction of a channel is indicated by one of the following constants.
+// The direction of a channel is indicated by one of these constants.
const (
SendRecv ChanDir = iota
SendOnly
diff --git a/src/math/big/float.go b/src/math/big/float.go
index d7aa8953c4..ef74fec513 100644
--- a/src/math/big/float.go
+++ b/src/math/big/float.go
@@ -124,7 +124,7 @@ const (
// rounding error is described by the Float's Accuracy.
type RoundingMode byte
-// The following rounding modes are supported.
+// These constants define supported rounding modes.
const (
ToNearestEven RoundingMode = iota // == IEEE 754-2008 roundTiesToEven
ToNearestAway // == IEEE 754-2008 roundTiesToAway
diff --git a/src/text/scanner/scanner.go b/src/text/scanner/scanner.go
index 3ab01edd24..0155800f34 100644
--- a/src/text/scanner/scanner.go
+++ b/src/text/scanner/scanner.go
@@ -73,7 +73,7 @@ const (
GoTokens = ScanIdents | ScanFloats | ScanChars | ScanStrings | ScanRawStrings | ScanComments | SkipComments
)
-// The result of Scan is one of the following tokens or a Unicode character.
+// The result of Scan is one of these tokens or a Unicode character.
const (
EOF = -(iota + 1)
Ident