mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
all: fix typos
Change-Id: I93ff3d33a5db130dd57a9545456f2961fc3f668b
GitHub-Last-Rev: f95fafc049
GitHub-Pull-Request: golang/go#51394
Reviewed-on: https://go-review.googlesource.com/c/go/+/388314
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
f9285818b6
commit
9fe3676bc7
|
@ -137,7 +137,7 @@ Do not send CLs removing the interior tags from such phrases.
|
|||
</li>
|
||||
<li><!-- https://golang.org/issue/51183 -->
|
||||
The Go compiler currently only supports calling a method <code>m</code> on a value
|
||||
<code>x</code> of type parameter type <code>P</code> if <code>m</code> is explictly
|
||||
<code>x</code> of type parameter type <code>P</code> if <code>m</code> is explicitly
|
||||
declared by <code>P</code>'s constraint interface.
|
||||
Similarly, method values <code>x.m</code> and method expressions
|
||||
<code>P.m</code> also are only supported if <code>m</code> is explicitly
|
||||
|
|
|
@ -63,7 +63,7 @@ func TestASAN(t *testing.T) {
|
|||
// sanitizer library needs a
|
||||
// symbolizer program and can't find it.
|
||||
const noSymbolizer = "external symbolizer"
|
||||
// Check if -asan option can correctly print where the error occured.
|
||||
// Check if -asan option can correctly print where the error occurred.
|
||||
if tc.errorLocation != "" &&
|
||||
!strings.Contains(out, tc.errorLocation) &&
|
||||
!strings.Contains(out, noSymbolizer) &&
|
||||
|
|
|
@ -657,7 +657,7 @@ func fldconv(b *bytes.Buffer, f *Field, verb rune, mode fmtMode, visited map[*Ty
|
|||
|
||||
// Compute tsym, the symbol that would normally be used as
|
||||
// the field name when embedding f.Type.
|
||||
// TODO(mdempsky): Check for other occurences of this logic
|
||||
// TODO(mdempsky): Check for other occurrences of this logic
|
||||
// and deduplicate.
|
||||
typ := f.Type
|
||||
if typ.IsPtr() {
|
||||
|
|
|
@ -79,7 +79,7 @@ func (check *Checker) validType0(typ Type, env *tparamEnv, path []Object) typeIn
|
|||
// would have reported a type cycle and couldn't have been
|
||||
// imported in the first place.
|
||||
assert(t.obj.pkg == check.pkg)
|
||||
t.underlying = Typ[Invalid] // t is in the current package (no race possibilty)
|
||||
t.underlying = Typ[Invalid] // t is in the current package (no race possibility)
|
||||
// Find the starting point of the cycle and report it.
|
||||
for i, tn := range path {
|
||||
if tn == t.obj {
|
||||
|
|
|
@ -79,7 +79,7 @@ func (check *Checker) validType0(typ Type, env *tparamEnv, path []Object) typeIn
|
|||
// would have reported a type cycle and couldn't have been
|
||||
// imported in the first place.
|
||||
assert(t.obj.pkg == check.pkg)
|
||||
t.underlying = Typ[Invalid] // t is in the current package (no race possibilty)
|
||||
t.underlying = Typ[Invalid] // t is in the current package (no race possibility)
|
||||
// Find the starting point of the cycle and report it.
|
||||
for i, tn := range path {
|
||||
if tn == t.obj {
|
||||
|
|
Loading…
Reference in a new issue