mirror of
https://github.com/golang/go.git
synced 2026-06-28 11:50:35 +00:00
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:
parent
080a6d5fa8
commit
8bd95ae848
5 changed files with 5 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue