Commit 49fb8cc1 authored by Konstantin Shaposhnikov's avatar Konstantin Shaposhnikov Committed by Rob Pike

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/14357Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 0cf73313
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment