all: fix misspellings Change-Id: Ib27a0a81b2870897a91c4d9836f6354d442090bc Reviewed-on: https://go-review.googlesource.com/51951 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/cases/gen.go b/cases/gen.go index eb399ba..24b7230 100644 --- a/cases/gen.go +++ b/cases/gen.go
@@ -596,7 +596,7 @@ // decomposition is greater than U+00FF, the rune is always // great and not a modifier. if f := runes[0]; unicode.IsMark(f) || f > 0xFF && !unicode.Is(unicode.Greek, f) { - log.Fatalf("%U: expeced first rune of Greek decomposition to be letter, found %U", r, f) + log.Fatalf("%U: expected first rune of Greek decomposition to be letter, found %U", r, f) } // A.6.2: Any follow-up rune in a Greek decomposition is a // modifier of which the first should be gobbled in @@ -605,7 +605,7 @@ switch m { case 0x0313, 0x0314, 0x0301, 0x0300, 0x0306, 0x0342, 0x0308, 0x0304, 0x345: default: - log.Fatalf("%U: modifier %U is outside of expeced Greek modifier set", r, m) + log.Fatalf("%U: modifier %U is outside of expected Greek modifier set", r, m) } } }
diff --git a/collate/build/colelem_test.go b/collate/build/colelem_test.go index 3862b1e..d0c8d07 100644 --- a/collate/build/colelem_test.go +++ b/collate/build/colelem_test.go
@@ -203,7 +203,7 @@ test := func(tt weightsTest, a, b [][]int) { res, level := compareWeights(mkRawCES(a), mkRawCES(b)) if res != tt.result { - t.Errorf("%d: expected comparisson result %d; found %d", i, tt.result, res) + t.Errorf("%d: expected comparison result %d; found %d", i, tt.result, res) } if level != tt.level { t.Errorf("%d: expected level %d; found %d", i, tt.level, level)
diff --git a/collate/tools/colcmp/colcmp.go b/collate/tools/colcmp/colcmp.go index 6dda8bc..ebd6012 100644 --- a/collate/tools/colcmp/colcmp.go +++ b/collate/tools/colcmp/colcmp.go
@@ -211,7 +211,7 @@ fmt.Fprint(ts.out, a...) } -// assertBuf sets up an io.Writer for ouput, if it doesn't already exist. +// assertBuf sets up an io.Writer for output, if it doesn't already exist. // In debug and verbose mode, output is buffered so that the regular output // will not interfere with the additional output. Otherwise, output is // written directly to stdout for a more responsive feel.
diff --git a/collate/tools/colcmp/icu.go b/collate/tools/colcmp/icu.go index 91980ac..76de404 100644 --- a/collate/tools/colcmp/icu.go +++ b/collate/tools/colcmp/icu.go
@@ -165,8 +165,8 @@ return c.extendBuf(n) } -// icuUTF8conv implementes the Collator interface. -// This implentation first converts the give UTF8 string +// icuUTF8conv implements the Collator interface. +// This implementation first converts the give UTF8 string // to UTF16 and then calls the main ICU collation function. type icuUTF8conv struct { icuCollator
diff --git a/internal/colltab/collelem.go b/internal/colltab/collelem.go index 880952c..2855589 100644 --- a/internal/colltab/collelem.go +++ b/internal/colltab/collelem.go
@@ -87,7 +87,7 @@ // - t* is the tertiary collation value // 100ttttt cccccccc pppppppp pppppppp // - t* is the tertiar collation value -// - c* is the cannonical combining class +// - c* is the canonical combining class // - p* is the primary collation value // Collation elements with a secondary value are of the form // 1010cccc ccccssss ssssssss tttttttt, where
diff --git a/internal/export/idna/idna.go b/internal/export/idna/idna.go index 4711196..1d775fa 100644 --- a/internal/export/idna/idna.go +++ b/internal/export/idna/idna.go
@@ -92,7 +92,7 @@ } } -// 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. //
diff --git a/internal/number/decimal.go b/internal/number/decimal.go index f6828ef..ef5df60 100644 --- a/internal/number/decimal.go +++ b/internal/number/decimal.go
@@ -58,7 +58,7 @@ buf [maxIntDigits]byte } -// normalize retuns a new Decimal with leading and trailing zeros removed. +// normalize returns a new Decimal with leading and trailing zeros removed. func (d *Decimal) normalize() (n Decimal) { n = *d b := n.Digits
diff --git a/unicode/cldr/examples_test.go b/unicode/cldr/examples_test.go index a65e86e..1a69b00 100644 --- a/unicode/cldr/examples_test.go +++ b/unicode/cldr/examples_test.go
@@ -7,7 +7,7 @@ ) func ExampleSlice() { - var dr *cldr.CLDR // assume this is initalized + var dr *cldr.CLDR // assume this is initialized x, _ := dr.LDML("en") cs := x.Collations.Collation
diff --git a/unicode/cldr/resolve_test.go b/unicode/cldr/resolve_test.go index 7b19cef..3d8edae 100644 --- a/unicode/cldr/resolve_test.go +++ b/unicode/cldr/resolve_test.go
@@ -39,7 +39,7 @@ var testStruct = fieldTest{ Common: Common{ - name: "mapping", // exclude "type" as distinguising attribute + name: "mapping", // exclude "type" as distinguishing attribute Type: "foo", Alt: "foo", },
diff --git a/unicode/cldr/slice_test.go b/unicode/cldr/slice_test.go index f354329..3d487d3 100644 --- a/unicode/cldr/slice_test.go +++ b/unicode/cldr/slice_test.go
@@ -158,7 +158,7 @@ s := MakeSlice(&sl) s.SelectOnePerGroup(tt.attr, tt.values) if len(sl) != len(tt.refs) { - t.Errorf("%d: found result lenght %d; want %d", i, len(sl), len(tt.refs)) + t.Errorf("%d: found result length %d; want %d", i, len(sl), len(tt.refs)) continue } for j, e := range sl {
diff --git a/unicode/norm/transform_test.go b/unicode/norm/transform_test.go index 987d680..d596ff3 100644 --- a/unicode/norm/transform_test.go +++ b/unicode/norm/transform_test.go
@@ -41,7 +41,7 @@ {NFC, "qx", "", true, 1, transform.ErrShortDst}, {NFC, "a\u0300abc", "\u00e0a", true, 4, transform.ErrShortDst}, - // We cannot write a segment if succesive runes could still change the result. + // We cannot write a segment if successive runes could still change the result. {NFD, "ö", "", false, 3, transform.ErrShortSrc}, {NFC, "a\u0300", "", false, 4, transform.ErrShortSrc}, {NFD, "a\u0300", "", false, 4, transform.ErrShortSrc}, @@ -68,7 +68,7 @@ t.Errorf("%d: was %+q (%v); want %+q (%v)", i, out, err, tt.out, tt.err) } if want := tt.f.String(tt.in)[:nDst]; want != out { - t.Errorf("%d: incorect normalization: was %+q; want %+q", i, out, want) + t.Errorf("%d: incorrect normalization: was %+q; want %+q", i, out, want) } } }