]> Cypherpunks repositories - gostls13.git/commitdiff
all: minor documentation tweaks for constants
authorKonstantin Shaposhnikov <k.shaposhnikov@gmail.com>
Tue, 8 Sep 2015 11:26:02 +0000 (19:26 +0800)
committerRob Pike <r@golang.org>
Wed, 9 Sep 2015 05:07:52 +0000 (05:07 +0000)
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>
src/go/types/type.go
src/math/big/float.go
src/text/scanner/scanner.go

index 1df8b45b2855315f03bc9789e5c678811a056af1..b93039abd8cfb962a6b025cdffd874a0ea73484f 100644 (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
index d7aa8953c435ce45684a7d58770e1644028c2224..ef74fec513c216a93e8b33449dd9fb90c26410f8 100644 (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
index 3ab01edd247ef4a97904c5e2e5610d66ff32438c..0155800f34a716d43352b3ca206c9c5f30fc69ae 100644 (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