mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Correct typos in Go comments
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
17e60b77e1
commit
36ce3a4a9d
@@ -92,7 +92,7 @@ type Language struct {
|
||||
collator *Collator
|
||||
location *time.Location
|
||||
|
||||
// Error during initialization. Will fail the buld.
|
||||
// Error during initialization. Will fail the build.
|
||||
initErr error
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ func (l Languages) AsOrdinalSet() map[string]int {
|
||||
}
|
||||
|
||||
// IsMultihost returns whether there are more than one language and at least one of
|
||||
// the languages has baseURL specificed on the language level.
|
||||
// the languages has baseURL specified on the language level.
|
||||
func (l Languages) IsMultihost() bool {
|
||||
if len(l) <= 1 {
|
||||
return false
|
||||
@@ -326,7 +326,7 @@ type Collator struct {
|
||||
// CompareStrings compares a and b.
|
||||
// It returns -1 if a < b, 1 if a > b and 0 if a == b.
|
||||
// Note that the Collator is not thread safe, so you may want
|
||||
// to aquire a lock on it before calling this method.
|
||||
// to acquire a lock on it before calling this method.
|
||||
func (c *Collator) CompareStrings(a, b string) int {
|
||||
return c.c.CompareString(a, b)
|
||||
}
|
||||
|
Reference in New Issue
Block a user