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>
This commit is contained in:
Konstantin Shaposhnikov 2015-09-08 19:26:02 +08:00 committed by Rob Pike
parent 0cf7331391
commit 49fb8cc10c
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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