mirror of
https://github.com/golang/go
synced 2024-11-26 09:08:07 -07:00
test, test/fixedbugs, crypto/x509, go/internal/gccgoimporter: fix typos
Change-Id: Ie2d605ca8cc3bde2e26c6865642ff4e6412cd075
GitHub-Last-Rev: ce5c3ba369
GitHub-Pull-Request: golang/go#38137
Reviewed-on: https://go-review.googlesource.com/c/go/+/226201
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
5aef51a729
commit
82047a080f
@ -1806,7 +1806,7 @@ func TestMD5(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// certMissingRSANULL contains an RSA public key where the AlgorithmIdentifer
|
// certMissingRSANULL contains an RSA public key where the AlgorithmIdentifier
|
||||||
// parameters are omitted rather than being an ASN.1 NULL.
|
// parameters are omitted rather than being an ASN.1 NULL.
|
||||||
const certMissingRSANULL = `
|
const certMissingRSANULL = `
|
||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN CERTIFICATE-----
|
||||||
|
@ -326,7 +326,7 @@ func (p *parser) parseConstValue(pkg *types.Package) (val constant.Value, typ ty
|
|||||||
if p.tok == '$' {
|
if p.tok == '$' {
|
||||||
p.next()
|
p.next()
|
||||||
if p.tok != scanner.Ident {
|
if p.tok != scanner.Ident {
|
||||||
p.errorf("expected identifer after '$', got %s (%q)", scanner.TokenString(p.tok), p.lit)
|
p.errorf("expected identifier after '$', got %s (%q)", scanner.TokenString(p.tok), p.lit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Test that incorrect uses of the blank identifer are caught.
|
// Test that incorrect uses of the blank identifier are caught.
|
||||||
// Does not compile.
|
// Does not compile.
|
||||||
|
|
||||||
package _ // ERROR "invalid package name"
|
package _ // ERROR "invalid package name"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Test that dequeueing from a pending channel doesn't
|
// Test that dequeuing from a pending channel doesn't
|
||||||
// take linear time.
|
// take linear time.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Test that an incorrect use of the blank identifer is caught.
|
// Test that an incorrect use of the blank identifier is caught.
|
||||||
// Does not compile.
|
// Does not compile.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
Loading…
Reference in New Issue
Block a user