Skip to content

Commit 30dadde

Browse files
alexandeargopherbot
authored andcommitted
all: correct comment typos
Change-Id: I1e31e93937e960fc7fcc4672208dae067e1f33e7 GitHub-Last-Rev: 9cdbf6f GitHub-Pull-Request: #42 Reviewed-on: https://go-review.googlesource.com/c/text/+/465655 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
1 parent 71a9c9a commit 30dadde

14 files changed

Lines changed: 15 additions & 15 deletions

File tree

collate/build/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (t *Tailoring) SetAnchorBefore(anchor string) error {
240240
// t.SetAnchor("u")
241241
// t.Insert(colltab.Secondary, "ü", "e")
242242
//
243-
// Order "q" afer "ab" at the secondary level and "Q" after "q"
243+
// Order "q" after "ab" at the secondary level and "Q" after "q"
244244
// at the tertiary level:
245245
//
246246
// t.SetAnchor("ab")

collate/build/order.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func makeRootOrdering() ordering {
308308
return o
309309
}
310310

311-
// patchForInsert eleminates entries from the list with more than one collation element.
311+
// patchForInsert eliminates entries from the list with more than one collation element.
312312
// The next and prev fields of the eliminated entries still point to appropriate
313313
// values in the newly created list.
314314
// It requires that sort has been called.

collate/build/order_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestRemove(t *testing.T) {
9292

9393
// nextPerm generates the next permutation of the array. The starting
9494
// permutation is assumed to be a list of integers sorted in increasing order.
95-
// It returns false if there are no more permuations left.
95+
// It returns false if there are no more permutations left.
9696
func nextPerm(a []int) bool {
9797
i := len(a) - 2
9898
for ; i >= 0; i-- {

collate/tools/colcmp/col.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func getCollator(name, locale string) Collator {
7373
return nil
7474
}
7575

76-
// goCollator is an implemention of Collator using go's own collator.
76+
// goCollator is an implementation of Collator using go's own collator.
7777
type goCollator struct {
7878
c *collate.Collator
7979
buf collate.Buffer

encoding/ianaindex/ianaindex_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ func TestNotSupported(t *testing.T) {
4949
}
5050
}
5151

52-
// Many encodings in the IANA index will likely not be suppored by the
52+
// Many encodings in the IANA index will likely not be supported by the
5353
// Go encodings. That is fine.
54-
// TODO: consider wheter we should add this test.
54+
// TODO: consider whether we should add this test.
5555
// for code, mib := range ianaToMIB {
5656
// t.Run(fmt.Sprint("IANA:", mib), func(t *testing.T) {
5757
// if !mibs[mib] {

encoding/internal/internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (e FuncEncoding) NewEncoder() *encoding.Encoder {
6464
// byte.
6565
type RepertoireError byte
6666

67-
// Error implements the error interrface.
67+
// Error implements the error interface.
6868
func (r RepertoireError) Error() string {
6969
return "encoding: rune not supported by encoding."
7070
}

internal/export/idna/idna9.0.0.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func CheckJoiners(enable bool) Option {
121121
}
122122
}
123123

124-
// StrictDomainName limits the set of permissable ASCII characters to those
124+
// StrictDomainName limits the set of permissible ASCII characters to those
125125
// allowed in domain names as defined in RFC 1034 (A-Z, a-z, 0-9 and the
126126
// hyphen). This is set by default for MapForLookup and ValidateForRegistration,
127127
// but is only useful if ValidateLabels is set.

internal/number/decimal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (d *Decimal) ConvertFloat(r RoundingContext, x float64, size int) {
419419
}
420420
} else {
421421
// TODO: At this point strconv's rounding is imprecise to the point that
422-
// it is not useable for this purpose.
422+
// it is not usable for this purpose.
423423
// See https://github.com/golang/go/issues/21714
424424
// If rounding is requested, we ask for a large number of digits and
425425
// round from there to simulate rounding only once.

language/match_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func makeTagList(s string) (tags []Tag) {
9999
func TestMatchStrings(t *testing.T) {
100100
testCases := []struct {
101101
supported string
102-
desired string // strings separted by |
102+
desired string // strings separated by |
103103
tag string
104104
index int
105105
}{{

message/pipeline/pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Config struct {
9090
// file. If not specified it is relative to the current directory.
9191
GenPackage string
9292

93-
// DeclareVar defines a variable to which to assing the generated Catalog.
93+
// DeclareVar defines a variable to which to assign the generated Catalog.
9494
DeclareVar string
9595

9696
// SetDefault determines whether to assign the generated Catalog to

0 commit comments

Comments
 (0)