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
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Implementation of runtime/debug.WriteHeapDump. Writes all
|
||||
// Implementation of runtime/debug.WriteHeapDump. Writes all
|
||||
// objects in the heap plus additional info (roots, threads,
|
||||
// finalizers, etc.) to a file.
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ func flush() {
|
|||
// Inside a bucket, we keep a list of types that
|
||||
// have been serialized so far, most recently used first.
|
||||
// Note: when a bucket overflows we may end up
|
||||
// serializing a type more than once. That's ok.
|
||||
// serializing a type more than once. That's ok.
|
||||
const (
|
||||
typeCacheBuckets = 256
|
||||
typeCacheAssoc = 4
|
||||
|
|
@ -172,7 +172,7 @@ func dumptype(t *_type) {
|
|||
}
|
||||
}
|
||||
|
||||
// Might not have been dumped yet. Dump it and
|
||||
// Might not have been dumped yet. Dump it and
|
||||
// remember we did so.
|
||||
for j := typeCacheAssoc - 1; j > 0; j-- {
|
||||
b.t[j] = b.t[j-1]
|
||||
|
|
@ -254,7 +254,7 @@ func dumpframe(s *stkframe, arg unsafe.Pointer) bool {
|
|||
pcdata := pcdatavalue(f, _PCDATA_StackMapIndex, pc, nil)
|
||||
if pcdata == -1 {
|
||||
// We do not have a valid pcdata value but there might be a
|
||||
// stackmap for this function. It is likely that we are looking
|
||||
// stackmap for this function. It is likely that we are looking
|
||||
// at the function prologue, assume so and hope for the best.
|
||||
pcdata = 0
|
||||
}
|
||||
|
|
@ -679,8 +679,8 @@ func dumpfields(bv bitvector) {
|
|||
}
|
||||
|
||||
// The heap dump reader needs to be able to disambiguate
|
||||
// Eface entries. So it needs to know every type that might
|
||||
// appear in such an entry. The following routine accomplishes that.
|
||||
// Eface entries. So it needs to know every type that might
|
||||
// appear in such an entry. The following routine accomplishes that.
|
||||
// TODO(rsc, khr): Delete - no longer possible.
|
||||
|
||||
// Dump all the types that appear in the type field of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue