mirror of
https://github.com/golang/go
synced 2024-11-25 23:58:02 -07:00
all: fix spelling
Change-Id: I68538a50c22b02cdb5aa2a889f9440fed7b94c54
GitHub-Last-Rev: aaac9e7834
GitHub-Pull-Request: golang/go#52944
Reviewed-on: https://go-review.googlesource.com/c/go/+/406835
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
c25c37137d
commit
a6f3f8d973
@ -830,7 +830,7 @@ func ssaGenValue(s *ssagen.State, v *ssa.Value) {
|
||||
case ssa.OpPPC64MOVDload, ssa.OpPPC64MOVWload:
|
||||
|
||||
// MOVDload and MOVWload are DS form instructions that are restricted to
|
||||
// offsets that are a multiple of 4. If the offset is not a multple of 4,
|
||||
// offsets that are a multiple of 4. If the offset is not a multiple of 4,
|
||||
// then the address of the symbol to be loaded is computed (base + offset)
|
||||
// and used as the new base register and the offset field in the instruction
|
||||
// can be set to zero.
|
||||
@ -933,7 +933,7 @@ func ssaGenValue(s *ssagen.State, v *ssa.Value) {
|
||||
case ssa.OpPPC64MOVDstore, ssa.OpPPC64MOVDstorezero:
|
||||
|
||||
// MOVDstore and MOVDstorezero become DS form instructions that are restricted
|
||||
// to offset values that are a multple of 4. If the offset field is not a
|
||||
// to offset values that are a multiple of 4. If the offset field is not a
|
||||
// multiple of 4, then the full address of the store target is computed (base +
|
||||
// offset) and used as the new base register and the offset in the instruction
|
||||
// is set to 0.
|
||||
|
@ -68,7 +68,7 @@ func TestIssue38068(t *testing.T) {
|
||||
// Compile a small package with and without the concurrent
|
||||
// backend, then check to make sure that the resulting archives
|
||||
// are identical. Note: this uses "go tool compile" instead of
|
||||
// "go build" since the latter will generate differnent build IDs
|
||||
// "go build" since the latter will generate different build IDs
|
||||
// if it sees different command line flags.
|
||||
scenarios := []struct {
|
||||
tag string
|
||||
|
@ -9,7 +9,7 @@ env GOCACHE=$WORK/cache
|
||||
! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithAdd[/\\]'
|
||||
stdout FAIL
|
||||
|
||||
# Test that fuzzing a target with a sucess in f.Add and a fuzztime of only
|
||||
# Test that fuzzing a target with a success in f.Add and a fuzztime of only
|
||||
# 1 does not produce a crash.
|
||||
go test -fuzz=FuzzWithGoodAdd -run=FuzzWithGoodAdd -fuzztime=1x
|
||||
stdout ok
|
||||
@ -73,7 +73,7 @@ go clean -fuzzcache
|
||||
! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithAdd[/\\]'
|
||||
stdout FAIL
|
||||
|
||||
# Test that fuzzing a target (with -run=None set) with a sucess in f.Add and a
|
||||
# Test that fuzzing a target (with -run=None set) with a success in f.Add and a
|
||||
# fuzztime of only 1 does not produce a crash.
|
||||
go test -fuzz=FuzzWithGoodAdd -run=None -fuzztime=1x
|
||||
stdout ok
|
||||
|
2
src/cmd/go/testdata/script/version.txt
vendored
2
src/cmd/go/testdata/script/version.txt
vendored
@ -2,7 +2,7 @@
|
||||
go version
|
||||
stdout '^go version'
|
||||
|
||||
# Flags without files, or paths to misisng files, should error.
|
||||
# Flags without files, or paths to missing files, should error.
|
||||
! go version missing.exe
|
||||
! go version -m
|
||||
stderr 'with arguments'
|
||||
|
@ -21,7 +21,7 @@ const outbufMode = 0775
|
||||
|
||||
// OutBuf is a buffered file writer.
|
||||
//
|
||||
// It is simlar to the Writer in cmd/internal/bio with a few small differences.
|
||||
// It is similar to the Writer in cmd/internal/bio with a few small differences.
|
||||
//
|
||||
// First, it tracks the output architecture and uses it to provide
|
||||
// endian helpers.
|
||||
|
@ -356,7 +356,7 @@ func TestGoObjOtherVersion(t *testing.T) {
|
||||
cmd := exec.Command(exe, obj)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err == nil {
|
||||
t.Fatalf("objdump go116.o succeeded unexpectly")
|
||||
t.Fatalf("objdump go116.o succeeded unexpectedly")
|
||||
}
|
||||
if !strings.Contains(string(out), "go object of a different version") {
|
||||
t.Errorf("unexpected error message:\n%s", out)
|
||||
|
2
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
generated
vendored
2
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
generated
vendored
@ -1715,7 +1715,7 @@ func (st *state) demangleCastTemplateArgs(tp AST, addSubst bool) AST {
|
||||
return tp
|
||||
}
|
||||
|
||||
// mergeQualifiers merges two qualifer lists into one.
|
||||
// mergeQualifiers merges two qualifier lists into one.
|
||||
func mergeQualifiers(q1AST, q2AST AST) AST {
|
||||
if q1AST == nil {
|
||||
return q2AST
|
||||
|
@ -130,7 +130,7 @@ const maxBitsLimit = 16
|
||||
// maxBits is the maximum number of bits that should be used to encode any literal.
|
||||
// It must be less than 16.
|
||||
//
|
||||
// bitCounts retruns an integer slice in which slice[i] indicates the number of literals
|
||||
// bitCounts returns an integer slice in which slice[i] indicates the number of literals
|
||||
// that should be encoded in i bits.
|
||||
func (h *huffmanEncoder) bitCounts(list []literalNode, maxBits int32) []int32 {
|
||||
if maxBits >= maxBitsLimit {
|
||||
|
@ -345,7 +345,7 @@ func TestTLSPointFormats(t *testing.T) {
|
||||
}
|
||||
} else {
|
||||
if len(serverHello.supportedPoints) != 0 {
|
||||
t.Fatalf("unexcpected ec_point_format extension from server: %v", serverHello.supportedPoints)
|
||||
t.Fatalf("unexpected ec_point_format extension from server: %v", serverHello.supportedPoints)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -2986,7 +2986,7 @@ func TestConnExpiresFreshOutOfPool(t *testing.T) {
|
||||
}
|
||||
|
||||
// TestIssue20575 ensures the Rows from query does not block
|
||||
// closing a transaction. Ensure Rows is closed while closing a trasaction.
|
||||
// closing a transaction. Ensure Rows is closed while closing a transaction.
|
||||
func TestIssue20575(t *testing.T) {
|
||||
db := newTestDB(t, "people")
|
||||
defer closeDB(t, db)
|
||||
|
@ -933,7 +933,7 @@ func (d *Decoder) InputOffset() int64 {
|
||||
return d.offset
|
||||
}
|
||||
|
||||
// InputPos retuns the line of the current decoder position and the 1 based
|
||||
// InputPos returns the line of the current decoder position and the 1 based
|
||||
// input position of the line. The position gives the location of the end of the
|
||||
// most recently returned token.
|
||||
func (d *Decoder) InputPos() (line, column int) {
|
||||
|
@ -1044,7 +1044,7 @@ func (c *gcControllerState) memoryLimitHeapGoal() uint64 {
|
||||
//
|
||||
// Let's take a step back. In an ideal world, this term would look something like just
|
||||
// the heap goal. That is, we "reserve" enough space for the heap to grow to the heap
|
||||
// goal, and subtract out everything else. This is of course impossible; the defintion
|
||||
// goal, and subtract out everything else. This is of course impossible; the definition
|
||||
// is circular! However, this impossible definition contains a key insight: the amount
|
||||
// we're *going* to use matters just as much as whatever we're currently using.
|
||||
//
|
||||
|
@ -37,7 +37,7 @@ func labelValue(ctx context.Context) labelMap {
|
||||
// that admits incremental immutable modification more efficiently.
|
||||
type labelMap map[string]string
|
||||
|
||||
// String statisfies Stringer and returns key, value pairs in a consistent
|
||||
// String satisfies Stringer and returns key, value pairs in a consistent
|
||||
// order.
|
||||
func (l *labelMap) String() string {
|
||||
if l == nil {
|
||||
|
@ -410,7 +410,7 @@ racecallatomic_ignore:
|
||||
BL racecall<>(SB)
|
||||
// Call __tsan_go_ignore_sync_end.
|
||||
MOVD $__tsan_go_ignore_sync_end(SB), R8
|
||||
MOVD g_racectx(g), R3 // goroutine context g should sitll be good?
|
||||
MOVD g_racectx(g), R3 // goroutine context g should still be good?
|
||||
BL racecall<>(SB)
|
||||
RET
|
||||
|
||||
|
@ -22,7 +22,7 @@ TEXT callCfunction<>(SB), NOSPLIT|NOFRAME,$0
|
||||
|
||||
|
||||
// asmsyscall6 calls a library function with a function descriptor
|
||||
// stored in libcall_fn and store the results in libcall struture
|
||||
// stored in libcall_fn and store the results in libcall structure
|
||||
// Up to 6 arguments can be passed to this C function
|
||||
// Called by runtime.asmcgocall
|
||||
// It reserves a stack of 288 bytes for the C function. It must
|
||||
|
@ -12,7 +12,7 @@
|
||||
// bodies (assembly, linkname), as well as explicitly on complete functions
|
||||
// with //go:uintptrkeepalive.
|
||||
//
|
||||
// This is most important for syscall.Syscall (and similiar functions), so we
|
||||
// This is most important for syscall.Syscall (and similar functions), so we
|
||||
// test it explicitly.
|
||||
|
||||
package p
|
||||
|
Loading…
Reference in New Issue
Block a user