mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
f096b5b340
commit
380525598c
|
|
@ -969,14 +969,14 @@ func (*FuncDecl) declNode() {}
|
||||||
//
|
//
|
||||||
// For correct printing of source code containing comments (using packages
|
// For correct printing of source code containing comments (using packages
|
||||||
// go/format and go/printer), special care must be taken to update comments
|
// go/format and go/printer), special care must be taken to update comments
|
||||||
// when a File's syntax tree is modified: For printing, comments are inter-
|
// when a File's syntax tree is modified: For printing, comments are interspersed
|
||||||
// spersed between tokens based on their position. If syntax tree nodes are
|
// between tokens based on their position. If syntax tree nodes are
|
||||||
// removed or moved, relevant comments in their vicinity must also be removed
|
// removed or moved, relevant comments in their vicinity must also be removed
|
||||||
// (from the File.Comments list) or moved accordingly (by updating their
|
// (from the File.Comments list) or moved accordingly (by updating their
|
||||||
// positions). A CommentMap may be used to facilitate some of these operations.
|
// positions). A CommentMap may be used to facilitate some of these operations.
|
||||||
//
|
//
|
||||||
// Whether and how a comment is associated with a node depends on the inter-
|
// Whether and how a comment is associated with a node depends on the
|
||||||
// pretation of the syntax tree by the manipulating program: Except for Doc
|
// interpretation of the syntax tree by the manipulating program: Except for Doc
|
||||||
// and Comment comments directly associated with nodes, the remaining comments
|
// and Comment comments directly associated with nodes, the remaining comments
|
||||||
// are "free-floating" (see also issues #18593, #20744).
|
// are "free-floating" (see also issues #18593, #20744).
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -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
|
// The label declaration typically starts at x[0].Pos(), but the label
|
||||||
// declaration may be erroneous due to a token after that position (and
|
// declaration may be erroneous due to a token after that position (and
|
||||||
// before the ':'). If SpuriousErrors is not set, the (only) error re-
|
// before the ':'). If SpuriousErrors is not set, the (only) error
|
||||||
// ported for the line is the illegal label error instead of the token
|
// reported for the line is the illegal label error instead of the token
|
||||||
// before the ':' that caused the problem. Thus, use the (latest) colon
|
// before the ':' that caused the problem. Thus, use the (latest) colon
|
||||||
// position for error reporting.
|
// position for error reporting.
|
||||||
p.error(colon, "illegal label declaration")
|
p.error(colon, "illegal label declaration")
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ func (z *Rat) Scan(s fmt.ScanState, ch rune) error {
|
||||||
// SetString sets z to the value of s and returns z and a boolean indicating
|
// SetString sets z to the value of s and returns z and a boolean indicating
|
||||||
// success. s can be given as a fraction "a/b" or as a floating-point number
|
// success. s can be given as a fraction "a/b" or as a floating-point number
|
||||||
// optionally followed by an exponent. The entire string (not just a prefix)
|
// optionally followed by an exponent. The entire string (not just a prefix)
|
||||||
// must be valid for success. If the operation failed, the value of z is un-
|
// must be valid for success. If the operation failed, the value of z is
|
||||||
// defined but the returned value is nil.
|
// undefined but the returned value is nil.
|
||||||
func (z *Rat) SetString(s string) (*Rat, bool) {
|
func (z *Rat) SetString(s string) (*Rat, bool) {
|
||||||
if len(s) == 0 {
|
if len(s) == 0 {
|
||||||
return nil, false
|
return nil, false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue