mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: single space after period.
The tree's pretty inconsistent about single space vs double space after a period in documentation. Make it consistently a single space, per earlier decisions. This means contributors won't be confused by misleading precedence. This CL doesn't use go/doc to parse. It only addresses // comments. It was generated with: $ perl -i -npe 's,^(\s*// .+[a-z]\.) +([A-Z]),$1 $2,' $(git grep -l -E '^\s*//(.+\.) +([A-Z])') $ go test go/doc -update Change-Id: Iccdb99c37c797ef1f804a94b22ba5ee4b500c4f7 Reviewed-on: https://go-review.googlesource.com/20022 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Dave Day <djd@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8b4deb448e
commit
5fea2ccc77
536 changed files with 1732 additions and 1732 deletions
|
|
@ -577,7 +577,7 @@ func loadlib() {
|
|||
if Linkmode == LinkExternal && !iscgo {
|
||||
// This indicates a user requested -linkmode=external.
|
||||
// The startup code uses an import of runtime/cgo to decide
|
||||
// whether to initialize the TLS. So give it one. This could
|
||||
// whether to initialize the TLS. So give it one. This could
|
||||
// be handled differently but it's an unusual case.
|
||||
loadinternal("runtime/cgo")
|
||||
|
||||
|
|
@ -1112,8 +1112,8 @@ func hostlink() {
|
|||
|
||||
// On Windows, given -o foo, GCC will append ".exe" to produce
|
||||
// "foo.exe". We have decided that we want to honor the -o
|
||||
// option. To make this work, we append a '.' so that GCC
|
||||
// will decide that the file already has an extension. We
|
||||
// option. To make this work, we append a '.' so that GCC
|
||||
// will decide that the file already has an extension. We
|
||||
// only want to do this when producing a Windows output file
|
||||
// on a Windows host.
|
||||
outopt := outfile
|
||||
|
|
@ -1179,8 +1179,8 @@ func hostlink() {
|
|||
|
||||
// clang, unlike GCC, passes -rdynamic to the linker
|
||||
// even when linking with -static, causing a linker
|
||||
// error when using GNU ld. So take out -rdynamic if
|
||||
// we added it. We do it in this order, rather than
|
||||
// error when using GNU ld. So take out -rdynamic if
|
||||
// we added it. We do it in this order, rather than
|
||||
// only adding -rdynamic later, so that -extldflags
|
||||
// can override -rdynamic without using -static.
|
||||
if Iself && p == "-static" {
|
||||
|
|
@ -1254,8 +1254,8 @@ func hostlinkArchArgs() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ldobj loads an input object. If it is a host object (an object
|
||||
// compiled by a non-Go compiler) it returns the Hostobj pointer. If
|
||||
// ldobj loads an input object. If it is a host object (an object
|
||||
// compiled by a non-Go compiler) it returns the Hostobj pointer. If
|
||||
// it is a Go object, it returns nil.
|
||||
func ldobj(f *obj.Biobuf, pkg string, length int64, pn string, file string, whence int) *Hostobj {
|
||||
eof := obj.Boffset(f) + length
|
||||
|
|
@ -1772,7 +1772,7 @@ func stkcheck(up *Chain, depth int) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
// Indirect call. Assume it is a call to a splitting function,
|
||||
// Indirect call. Assume it is a call to a splitting function,
|
||||
// so we have to make sure it can call morestack.
|
||||
// Arrange the data structures to report both calls, so that
|
||||
// if there is an error, stkprint shows all the steps involved.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue