src: fix spelling mistakes

Change-Id: I3e1b47e07d124fb739840ddc7bb56771fbde511e
GitHub-Last-Rev: 2045696238
GitHub-Pull-Request: golang/go#79364
Reviewed-on: https://go-review.googlesource.com/c/go/+/777200
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Manuel Doncel Martos 2026-05-12 16:55:47 +00:00 committed by Gopher Robot
parent 080a6d5fa8
commit 8bd95ae848
5 changed files with 5 additions and 5 deletions

View file

@ -113,7 +113,7 @@ func fixedFtoa(d *decimalSlice, mant uint64, exp, digits, prec int, fmt byte) {
}
// The value we want to format is dm * 2^de, where de < 0.
// Multply by 2^de by shifting, but leave one extra bit for rounding.
// Multiply by 2^de by shifting, but leave one extra bit for rounding.
// After the shift, the "integer part" of dm is dm>>1,
// the "rounding bit" (the first fractional bit) is dm&1,
// and the "truncated bit" (have any bits been discarded?) is dt.

View file

@ -633,7 +633,7 @@ func testTraceProg(t *testing.T, progName string, extra func(t *testing.T, trace
}
cmd.Env = append(cmd.Env, "GODEBUG="+godebug)
if _, ok := os.LookupEnv("GOTRACEBACK"); !ok {
// Unless overriden, set GOTRACEBACK=crash.
// Unless overridden, set GOTRACEBACK=crash.
cmd.Env = append(cmd.Env, "GOTRACEBACK=crash")
}

View file

@ -392,7 +392,7 @@ func (op Operation) GoType() string {
}
// ImmName returns the name to use for an operation's immediate operand.
// This can be overriden in the yaml with "name" on an operand,
// This can be overridden in the yaml with "name" on an operand,
// otherwise, for now, "constant"
func (op Operation) ImmName() string {
return op.Op0Name("constant")

View file

@ -329,7 +329,7 @@ func (dec *yamlDecoder) value(node *yaml.Node) (vOut *Value, errOut error) {
// of the tuple after we've generated it?
v, err := dec.value(elts[i])
if err != nil {
// It worked the first time, so this really shouldn't hapen.
// It worked the first time, so this really shouldn't happen.
panic("decoding repeat element failed")
}
return v, dec.env

View file

@ -54,7 +54,7 @@ Output 2: {{printf "%q" . | title}}
}
// This example demonstrates registering two custom template functions
// and how to overwite one of the functions after the template has been
// and how to overwrite one of the functions after the template has been
// parsed. Overwriting can be used, for example, to alter the operation
// of cloned templates.
func ExampleTemplate_funcs() {