Skip to content

Commit 1c05968

Browse files
kortschakgopherbot
authored andcommitted
all: fix comment typos
Change-Id: Ic16824482142d4de4d0b949459e36505ee944ff7 Reviewed-on: https://go-review.googlesource.com/c/go/+/448175 Reviewed-by: Robert Griesemer <gri@google.com> Run-TryBot: Dan Kortschak <dan@kortschak.io> Auto-Submit: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dan Kortschak <dan@kortschak.io> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
1 parent a343f40 commit 1c05968

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

src/crypto/internal/edwards25519/tables.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (v *projLookupTable) FromP3(q *Point) {
3838
tmpP3 := Point{}
3939
tmpP1xP1 := projP1xP1{}
4040
for i := 0; i < 7; i++ {
41-
// Compute (i+1)*Q as Q + i*Q and convert to a ProjCached
41+
// Compute (i+1)*Q as Q + i*Q and convert to a projCached
4242
// This is needlessly complicated because the API has explicit
4343
// receivers instead of creating stack objects and relying on RVO
4444
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.Add(q, &v.points[i])))
@@ -53,7 +53,7 @@ func (v *affineLookupTable) FromP3(q *Point) {
5353
tmpP3 := Point{}
5454
tmpP1xP1 := projP1xP1{}
5555
for i := 0; i < 7; i++ {
56-
// Compute (i+1)*Q as Q + i*Q and convert to AffineCached
56+
// Compute (i+1)*Q as Q + i*Q and convert to affineCached
5757
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.AddAffine(q, &v.points[i])))
5858
}
5959
}

src/crypto/rsa/pkcs1v15.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
// This file implements encryption and decryption using PKCS #1 v1.5 padding.
1818

19-
// PKCS1v15DecrypterOpts is for passing options to PKCS #1 v1.5 decryption using
19+
// PKCS1v15DecryptOptions is for passing options to PKCS #1 v1.5 decryption using
2020
// the crypto.Decrypter interface.
2121
type PKCS1v15DecryptOptions struct {
2222
// SessionKeyLen is the length of the session key that is being

src/crypto/x509/sec1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) {
5151
return marshalECPrivateKeyWithOID(key, oid)
5252
}
5353

54-
// marshalECPrivateKey marshals an EC private key into ASN.1, DER format and
54+
// marshalECPrivateKeyWithOID marshals an EC private key into ASN.1, DER format and
5555
// sets the curve ID to the given OID, or omits it if OID is nil.
5656
func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier) ([]byte, error) {
5757
if !key.Curve.IsOnCurve(key.X, key.Y) {

src/debug/dwarf/entry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type afield struct {
3434
// a map from entry format ids to their descriptions
3535
type abbrevTable map[uint32]abbrev
3636

37-
// ParseAbbrev returns the abbreviation table that starts at byte off
37+
// parseAbbrev returns the abbreviation table that starts at byte off
3838
// in the .debug_abbrev section.
3939
func (d *Data) parseAbbrev(off uint64, vers int) (abbrevTable, error) {
4040
if m, ok := d.abbrevCache[off]; ok {

src/encoding/xml/read.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Loop:
537537
consumed := false
538538
if sv.IsValid() {
539539
// unmarshalPath can call unmarshal, so we need to pass the depth through so that
540-
// we can continue to enforce the maximum recusion limit.
540+
// we can continue to enforce the maximum recursion limit.
541541
consumed, err = d.unmarshalPath(tinfo, sv, nil, &t, depth)
542542
if err != nil {
543543
return err

src/go/internal/gcimporter/iimport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (r *importReader) obj(name string) {
348348

349349
case 'T', 'U':
350350
// Types can be recursive. We need to setup a stub
351-
// declaration before recursing.
351+
// declaration before recurring.
352352
obj := types.NewTypeName(pos, r.currPkg, name, nil)
353353
named := types.NewNamed(obj, nil, nil)
354354
// Declare obj before calling r.tparamList, so the new type name is recognized

src/go/types/infer.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func (check *Checker) inferB(posn positioner, tparams []*TypeParam, targs []Type
579579
}
580580

581581
// The data structure of each (provided or inferred) type represents a graph, where
582-
// each node corresponds to a type and each (directed) vertice points to a component
582+
// each node corresponds to a type and each (directed) vertex points to a component
583583
// type. The substitution process described above repeatedly replaces type parameter
584584
// nodes in these graphs with the graphs of the types the type parameters stand for,
585585
// which creates a new (possibly bigger) graph for each type.
@@ -592,14 +592,14 @@ func (check *Checker) inferB(posn positioner, tparams []*TypeParam, targs []Type
592592
// Generally, cycles may occur across multiple type parameters and inferred types
593593
// (for instance, consider [P interface{ *Q }, Q interface{ func(P) }]).
594594
// We eliminate cycles by walking the graphs for all type parameters. If a cycle
595-
// through a type parameter is detected, cycleFinder nils out the respectice type
595+
// through a type parameter is detected, cycleFinder nils out the respective type
596596
// which kills the cycle; this also means that the respective type could not be
597597
// inferred.
598598
//
599599
// TODO(gri) If useful, we could report the respective cycle as an error. We don't
600600
// do this now because type inference will fail anyway, and furthermore,
601601
// constraints with cycles of this kind cannot currently be satisfied by
602-
// any user-suplied type. But should that change, reporting an error
602+
// any user-supplied type. But should that change, reporting an error
603603
// would be wrong.
604604
w := cycleFinder{tparams, types, make(map[Type]bool)}
605605
for _, t := range tparams {

src/go/types/validtype.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func makeObjList(tlist []*Named) []Object {
177177
// nest = A[A[string]]->B[P]
178178
// path = A[A[string]]->B[P]
179179
//
180-
// Eventutally we reach the type parameter P of type B (P₂):
180+
// Eventually we reach the type parameter P of type B (P₂):
181181
//
182182
// P₂
183183
// nest = A[A[string]]->B[P]

src/internal/coverage/encodecounter/encode.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
// This package contains APIs and helpers for encoding initial portions
21-
// of the counter data files emitted at runtime when coverage instrumention
21+
// of the counter data files emitted at runtime when coverage instrumentation
2222
// is enabled. Counter data files may contain multiple segments; the file
2323
// header and first segment are written via the "Write" method below, and
2424
// additional segments can then be added using "AddSegment".

src/internal/fuzz/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package fuzz
99
// For now, this is a simple ring buffer
1010
// (https://en.wikipedia.org/wiki/Circular_buffer).
1111
//
12-
// TODO(golang.org/issue/46224): use a priotization algorithm based on input
12+
// TODO(golang.org/issue/46224): use a prioritization algorithm based on input
1313
// size, previous duration, coverage, and any other metrics that seem useful.
1414
type queue struct {
1515
// elems holds a ring buffer.

0 commit comments

Comments
 (0)