mirror of
https://github.com/golang/go
synced 2024-11-17 16:44:44 -07:00
all: remove duplicate "the" words in comments
Following CL 424454, using command rg --multiline " the\s{1,}the " * rg --multiline " the\s{1,}//\s{1,}the " * all the words "the" that are repeated in comments are found. Change-Id: I60b769b98f04c927b4c228e10f37faf190964069 Reviewed-on: https://go-review.googlesource.com/c/go/+/423836 Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
parent
38edd9bd8d
commit
d8f90ce0f8
@ -179,7 +179,7 @@ func schedule(f *Func) {
|
|||||||
// scored CarryChainTail (and prove w is not a tail).
|
// scored CarryChainTail (and prove w is not a tail).
|
||||||
score[w.ID] = ScoreFlags
|
score[w.ID] = ScoreFlags
|
||||||
}
|
}
|
||||||
// Verify v has not been scored. If v has not been visited, v may be the
|
// Verify v has not been scored. If v has not been visited, v may be
|
||||||
// the final (tail) operation in a carry chain. If v is not, v will be
|
// the final (tail) operation in a carry chain. If v is not, v will be
|
||||||
// rescored above when v's carry-using op is scored. When scoring is done,
|
// rescored above when v's carry-using op is scored. When scoring is done,
|
||||||
// only tail operations will retain the CarryChainTail score.
|
// only tail operations will retain the CarryChainTail score.
|
||||||
|
@ -198,7 +198,7 @@ greater than the max then the assembler sets it to the max for that size (31 for
|
|||||||
32 bit values, 63 for 64 bit values). If the shift count is in a register, then
|
32 bit values, 63 for 64 bit values). If the shift count is in a register, then
|
||||||
only the low 5 or 6 bits of the register will be used as the shift count. The
|
only the low 5 or 6 bits of the register will be used as the shift count. The
|
||||||
Go compiler will add appropriate code to compare the shift value to achieve the
|
Go compiler will add appropriate code to compare the shift value to achieve the
|
||||||
the correct result, and the assembler does not add extra checking.
|
correct result, and the assembler does not add extra checking.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ func (out *OutBuf) fallocate(size uint64) error {
|
|||||||
}
|
}
|
||||||
// F_PEOFPOSMODE allocates from the end of the file, so we want the size difference.
|
// F_PEOFPOSMODE allocates from the end of the file, so we want the size difference.
|
||||||
// Apparently, it uses the end of the allocation, instead of the logical end of the
|
// Apparently, it uses the end of the allocation, instead of the logical end of the
|
||||||
// the file.
|
// file.
|
||||||
cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size
|
cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size
|
||||||
if size <= cursize {
|
if size <= cursize {
|
||||||
return nil
|
return nil
|
||||||
|
@ -725,7 +725,7 @@ type Config struct {
|
|||||||
|
|
||||||
// mutex protects sessionTicketKeys and autoSessionTicketKeys.
|
// mutex protects sessionTicketKeys and autoSessionTicketKeys.
|
||||||
mutex sync.RWMutex
|
mutex sync.RWMutex
|
||||||
// sessionTicketKeys contains zero or more ticket keys. If set, it means the
|
// sessionTicketKeys contains zero or more ticket keys. If set, it means
|
||||||
// the keys were set with SessionTicketKey or SetSessionTicketKeys. The
|
// the keys were set with SessionTicketKey or SetSessionTicketKeys. The
|
||||||
// first key is used for new tickets and any subsequent keys can be used to
|
// first key is used for new tickets and any subsequent keys can be used to
|
||||||
// decrypt old tickets. The slice contents are not protected by the mutex
|
// decrypt old tickets. The slice contents are not protected by the mutex
|
||||||
|
@ -112,7 +112,7 @@ type ReverseProxy struct {
|
|||||||
// At most one of Rewrite or Director may be set.
|
// At most one of Rewrite or Director may be set.
|
||||||
Rewrite func(*ProxyRequest)
|
Rewrite func(*ProxyRequest)
|
||||||
|
|
||||||
// Director is a function which modifies the
|
// Director is a function which modifies
|
||||||
// the request into a new request to be sent
|
// the request into a new request to be sent
|
||||||
// using Transport. Its response is then copied
|
// using Transport. Its response is then copied
|
||||||
// back to the original client unmodified.
|
// back to the original client unmodified.
|
||||||
|
Loading…
Reference in New Issue
Block a user