summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/text/collate
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/text/collate')
-rw-r--r--vendor/golang.org/x/text/collate/collate.go7
-rw-r--r--vendor/golang.org/x/text/collate/option.go4
-rw-r--r--vendor/golang.org/x/text/collate/tables.go2
3 files changed, 6 insertions, 7 deletions
diff --git a/vendor/golang.org/x/text/collate/collate.go b/vendor/golang.org/x/text/collate/collate.go
index 885ab80da..d8c23cb69 100644
--- a/vendor/golang.org/x/text/collate/collate.go
+++ b/vendor/golang.org/x/text/collate/collate.go
@@ -7,8 +7,7 @@
//go:generate go run maketables.go -cldr=23 -unicode=6.2.0
// Package collate contains types for comparing and sorting Unicode strings
-// according to a given collation order. Package locale provides a high-level
-// interface to collation. Users should typically use that package instead.
+// according to a given collation order.
package collate // import "golang.org/x/text/collate"
import (
@@ -194,7 +193,7 @@ func (c *Collator) compare() int {
// The returned slice will point to an allocation in Buffer and will remain
// valid until the next call to buf.Reset().
func (c *Collator) Key(buf *Buffer, str []byte) []byte {
- // See http://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
+ // See https://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
buf.init()
return c.key(buf, c.getColElems(str))
}
@@ -204,7 +203,7 @@ func (c *Collator) Key(buf *Buffer, str []byte) []byte {
// The returned slice will point to an allocation in Buffer and will retain
// valid until the next call to buf.ResetKeys().
func (c *Collator) KeyFromString(buf *Buffer, str string) []byte {
- // See http://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
+ // See https://www.unicode.org/reports/tr10/#Main_Algorithm for more details.
buf.init()
return c.key(buf, c.getColElemsString(str))
}
diff --git a/vendor/golang.org/x/text/collate/option.go b/vendor/golang.org/x/text/collate/option.go
index f39ef6841..19cb54675 100644
--- a/vendor/golang.org/x/text/collate/option.go
+++ b/vendor/golang.org/x/text/collate/option.go
@@ -165,7 +165,7 @@ var (
IgnoreWidth Option = ignoreWidth
ignoreWidth = Option{2, ignoreWidthF}
- // Loose sets the collator to ignore diacritics, case and weight.
+ // Loose sets the collator to ignore diacritics, case and width.
Loose Option = loose
loose = Option{4, looseF}
@@ -217,7 +217,7 @@ func Reorder(s ...string) Option {
// alternateHandling identifies the various ways in which variables are handled.
// A rune with a primary weight lower than the variable top is considered a
// variable.
-// See http://www.unicode.org/reports/tr10/#Variable_Weighting for details.
+// See https://www.unicode.org/reports/tr10/#Variable_Weighting for details.
type alternateHandling int
const (
diff --git a/vendor/golang.org/x/text/collate/tables.go b/vendor/golang.org/x/text/collate/tables.go
index 525d8529f..9ec4f3d49 100644
--- a/vendor/golang.org/x/text/collate/tables.go
+++ b/vendor/golang.org/x/text/collate/tables.go
@@ -1,4 +1,4 @@
-// This file was generated by go generate; DO NOT EDIT
+// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package collate