diff --git a/collate/build/colelem.go b/collate/build/colelem.go index 1aaa062c..f51faa1a 100644 --- a/collate/build/colelem.go +++ b/collate/build/colelem.go @@ -139,7 +139,7 @@ const ( maxPrimary = illegalOffset + 1 ) -// implicitPrimary returns the primary weight for the a rune +// implicitPrimary returns the primary weight for the given rune // for which there is no entry for the rune in the collation table. // We take a different approach from the one specified in // https://unicode.org/reports/tr10/#Implicit_Weights, diff --git a/internal/catmsg/codec.go b/internal/catmsg/codec.go index 49c9fc97..547802b0 100644 --- a/internal/catmsg/codec.go +++ b/internal/catmsg/codec.go @@ -257,7 +257,7 @@ func (d *Decoder) setError(err error) { // Language returns the language in which the message is being rendered. // // The destination language may be a child language of the language used for -// encoding. For instance, a decoding language of "pt-PT"" is consistent with an +// encoding. For instance, a decoding language of "pt-PT" is consistent with an // encoding language of "pt". func (d *Decoder) Language() language.Tag { return d.tag } diff --git a/internal/colltab/collelem.go b/internal/colltab/collelem.go index 0c23c8a4..bdcae9b1 100644 --- a/internal/colltab/collelem.go +++ b/internal/colltab/collelem.go @@ -354,7 +354,7 @@ const ( maxPrimary = illegalOffset + 1 ) -// implicitPrimary returns the primary weight for the a rune +// implicitPrimary returns the primary weight for the given rune // for which there is no entry for the rune in the collation table. // We take a different approach from the one specified in // https://unicode.org/reports/tr10/#Implicit_Weights, diff --git a/message/pipeline/pipeline.go b/message/pipeline/pipeline.go index 34f15f8a..2b07e38b 100644 --- a/message/pipeline/pipeline.go +++ b/message/pipeline/pipeline.go @@ -58,7 +58,7 @@ type Config struct { // 1. From the Language field in the file. // 2. If not present, from a valid language tag in the filename, separated // by dots (e.g. "en-US.json" or "incoming.pt_PT.xmb"). - // 3. If not present, from a the closest subdirectory in which the file + // 3. If not present, from the closest subdirectory in which the file // is contained that parses as a valid language tag. TranslationsPattern string diff --git a/unicode/norm/maketables.go b/unicode/norm/maketables.go index 76534da2..09d40135 100644 --- a/unicode/norm/maketables.go +++ b/unicode/norm/maketables.go @@ -235,7 +235,7 @@ func loadUnicodeData() { } } -// compactCCC converts the sparse set of CCC values to a continguous one, +// compactCCC converts the sparse set of CCC values to a contiguous one, // reducing the number of bits needed from 8 to 6. func compactCCC() { m := make(map[uint8]uint8)