Skip to content

Commit 0e5c3e2

Browse files
committed
language: fix typos
Change-Id: Ie1634d06461490ffc12ddf38f86135a68dfac2a9 Reviewed-on: https://go-review.googlesource.com/46851 Run-TryBot: Marcel van Lohuizen <mpvl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Nigel Tao <nigeltao@golang.org>
1 parent 6353ef0 commit 0e5c3e2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

language/maketables.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,10 @@ func (b *builder) writeLanguage() {
806806
}
807807
}
808808

809-
// Complete canonialized language tags.
809+
// Complete canonicalized language tags.
810810
lang.freeze()
811811
for i, v := range lang.s {
812-
// We can avoid these manual entries by using the IANI registry directly.
812+
// We can avoid these manual entries by using the IANA registry directly.
813813
// Seems easier to update the list manually, as changes are rare.
814814
// The panic in this loop will trigger if we miss an entry.
815815
add := ""
@@ -916,7 +916,7 @@ func (b *builder) writeRegion() {
916916
i := b.region.index(s)
917917
for _, d := range e.description {
918918
if strings.Contains(d, "Private use") {
919-
regionTypes[i] = iso3166UserAssgined
919+
regionTypes[i] = iso3166UserAssigned
920920
}
921921
}
922922
regionTypes[i] |= bcp47Region
@@ -1073,7 +1073,7 @@ const (
10731073
)
10741074

10751075
const (
1076-
iso3166UserAssgined = 1 << iota
1076+
iso3166UserAssigned = 1 << iota
10771077
ccTLD
10781078
bcp47Region
10791079
)
@@ -1521,7 +1521,6 @@ func (b *builder) writeRegionInclusionData() {
15211521
for _, v := range l {
15221522
regionContainment[g] |= 1 << v
15231523
}
1524-
// log.Printf("%d: %X", g, regionContainment[g])
15251524
}
15261525
b.writeSlice("regionContainment", regionContainment)
15271526

0 commit comments

Comments
 (0)