Change-Id: I6ba7a9de50acfa522d96609abead28d207ab4f81
Reviewed-on: https://go-review.googlesource.com/c/text/+/611795
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Tim King <taking@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
cuishuang 2024-09-09 15:09:38 +08:00 коммит произвёл Gopher Robot
Родитель 20097e45e6
Коммит 38a95c2d4a
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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,

Просмотреть файл

@ -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 }

Просмотреть файл

@ -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,

Просмотреть файл

@ -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

Просмотреть файл

@ -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)