Skip to content

Commit

Permalink
all: correct comment typos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alexandear authored and gopherbot committed Feb 7, 2023
1 parent 71a9c9a commit 30dadde
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion collate/build/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (t *Tailoring) SetAnchorBefore(anchor string) error {
// t.SetAnchor("u")
// t.Insert(colltab.Secondary, "ü", "e")
//
// Order "q" afer "ab" at the secondary level and "Q" after "q"
// Order "q" after "ab" at the secondary level and "Q" after "q"
// at the tertiary level:
//
// t.SetAnchor("ab")
Expand Down
2 changes: 1 addition & 1 deletion collate/build/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func makeRootOrdering() ordering {
return o
}

// patchForInsert eleminates entries from the list with more than one collation element.
// patchForInsert eliminates entries from the list with more than one collation element.
// The next and prev fields of the eliminated entries still point to appropriate
// values in the newly created list.
// It requires that sort has been called.
Expand Down
2 changes: 1 addition & 1 deletion collate/build/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestRemove(t *testing.T) {

// nextPerm generates the next permutation of the array. The starting
// permutation is assumed to be a list of integers sorted in increasing order.
// It returns false if there are no more permuations left.
// It returns false if there are no more permutations left.
func nextPerm(a []int) bool {
i := len(a) - 2
for ; i >= 0; i-- {
Expand Down
2 changes: 1 addition & 1 deletion collate/tools/colcmp/col.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func getCollator(name, locale string) Collator {
return nil
}

// goCollator is an implemention of Collator using go's own collator.
// goCollator is an implementation of Collator using go's own collator.
type goCollator struct {
c *collate.Collator
buf collate.Buffer
Expand Down
4 changes: 2 additions & 2 deletions encoding/ianaindex/ianaindex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ func TestNotSupported(t *testing.T) {
}
}

// Many encodings in the IANA index will likely not be suppored by the
// Many encodings in the IANA index will likely not be supported by the
// Go encodings. That is fine.
// TODO: consider wheter we should add this test.
// TODO: consider whether we should add this test.
// for code, mib := range ianaToMIB {
// t.Run(fmt.Sprint("IANA:", mib), func(t *testing.T) {
// if !mibs[mib] {
Expand Down
2 changes: 1 addition & 1 deletion encoding/internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (e FuncEncoding) NewEncoder() *encoding.Encoder {
// byte.
type RepertoireError byte

// Error implements the error interrface.
// Error implements the error interface.
func (r RepertoireError) Error() string {
return "encoding: rune not supported by encoding."
}
Expand Down
2 changes: 1 addition & 1 deletion internal/export/idna/idna9.0.0.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func CheckJoiners(enable bool) Option {
}
}

// StrictDomainName limits the set of permissable ASCII characters to those
// StrictDomainName limits the set of permissible ASCII characters to those
// allowed in domain names as defined in RFC 1034 (A-Z, a-z, 0-9 and the
// hyphen). This is set by default for MapForLookup and ValidateForRegistration,
// but is only useful if ValidateLabels is set.
Expand Down
2 changes: 1 addition & 1 deletion internal/number/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (d *Decimal) ConvertFloat(r RoundingContext, x float64, size int) {
}
} else {
// TODO: At this point strconv's rounding is imprecise to the point that
// it is not useable for this purpose.
// it is not usable for this purpose.
// See https://github.com/golang/go/issues/21714
// If rounding is requested, we ask for a large number of digits and
// round from there to simulate rounding only once.
Expand Down
2 changes: 1 addition & 1 deletion language/match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func makeTagList(s string) (tags []Tag) {
func TestMatchStrings(t *testing.T) {
testCases := []struct {
supported string
desired string // strings separted by |
desired string // strings separated by |
tag string
index int
}{{
Expand Down
2 changes: 1 addition & 1 deletion message/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type Config struct {
// file. If not specified it is relative to the current directory.
GenPackage string

// DeclareVar defines a variable to which to assing the generated Catalog.
// DeclareVar defines a variable to which to assign the generated Catalog.
DeclareVar string

// SetDefault determines whether to assign the generated Catalog to
Expand Down
2 changes: 1 addition & 1 deletion number/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ func Pad(r rune) Option {
// - FormatPosition (using type aliasing?)
// - Multiplier: find a better way to represent and figure out what to do
// with clashes with percent/permille.
// - NumberingSystem(nu string): not accessable in number.Info now. Also, should
// - NumberingSystem(nu string): not accessible in number.Info now. Also, should
// this be keyed by language or generic?
// - SymbolOverrides(symbols map[string]map[number.SymbolType]string) Option
2 changes: 1 addition & 1 deletion secure/precis/class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// Compile-time regression test to ensure that Class is a Set
var _ runes.Set = (*class)(nil)

// Ensure that certain characters are (or are not) in the identifer class.
// Ensure that certain characters are (or are not) in the identifier class.
func TestClassContains(t *testing.T) {
tests := []struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion unicode/cldr/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (d *Decoder) SetSectionFilter(filter ...string) {
// TODO: automatically set dir filter
}

// SetDirFilter limits the loading of LDML XML files of the specied directories.
// SetDirFilter limits the loading of LDML XML files of the specified directories.
// Note that sections may be split across directories differently for different CLDR versions.
// For more robust code, use SetSectionFilter.
func (d *Decoder) SetDirFilter(dir ...string) {
Expand Down
2 changes: 1 addition & 1 deletion unicode/norm/forminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "encoding/binary"
// a rune to a uint16. The values take two forms. For v >= 0x8000:
// bits
// 15: 1 (inverse of NFD_QC bit of qcInfo)
// 13..7: qcInfo (see below). isYesD is always true (no decompostion).
// 13..7: qcInfo (see below). isYesD is always true (no decomposition).
// 6..0: ccc (compressed CCC value).
// For v < 0x8000, the respective rune has a decomposition and v is an index
// into a byte array of UTF-8 decomposition sequences and additional info and
Expand Down

0 comments on commit 30dadde

Please sign in to comment.