aboutsummaryrefslogtreecommitdiff
path: root/src/go/parser/parser.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-08-06 06:17:42 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-08-06 16:14:46 +0000
commit380525598ca917fe3226842f91695f4851b34e89 (patch)
treeb7dd52260a997ede8b20232ec1573de03813aca6 /src/go/parser/parser.go
parentf096b5b340f6e831cf80cd39cbf88d4656d232fa (diff)
downloadgo-380525598ca917fe3226842f91695f4851b34e89.tar.gz
go-380525598ca917fe3226842f91695f4851b34e89.zip
all: remove some manual hyphenation
Manual hyphenation doesn't work well when text gets reflown, for example by godoc. There are a few other manual hyphenations in the tree, but they are in local comments or comments for unexported functions. Change-Id: I17c9b1fee1def650da48903b3aae2fa1e1119a65 Reviewed-on: https://go-review.googlesource.com/53510 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/go/parser/parser.go')
-rw-r--r--src/go/parser/parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/parser/parser.go b/src/go/parser/parser.go
index 1b4309b5da..2b58724521 100644
--- a/src/go/parser/parser.go
+++ b/src/go/parser/parser.go
@@ -1707,8 +1707,8 @@ func (p *parser) parseSimpleStmt(mode int) (ast.Stmt, bool) {
}
// The label declaration typically starts at x[0].Pos(), but the label
// declaration may be erroneous due to a token after that position (and
- // before the ':'). If SpuriousErrors is not set, the (only) error re-
- // ported for the line is the illegal label error instead of the token
+ // before the ':'). If SpuriousErrors is not set, the (only) error
+ // reported for the line is the illegal label error instead of the token
// before the ':' that caused the problem. Thus, use the (latest) colon
// position for error reporting.
p.error(colon, "illegal label declaration")