mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
fix some typos
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
This commit is contained in:
parent
b1de03f398
commit
13221bfc3c
5 changed files with 5 additions and 5 deletions
|
@ -379,7 +379,7 @@ func DeprecateLevel(item, alternative, version string, level logg.Level) {
|
||||||
loggers.Log().Logger().WithLevel(level).WithField(loggers.FieldNameCmd, "deprecated").Logf(msg)
|
loggers.Log().Logger().WithLevel(level).WithField(loggers.FieldNameCmd, "deprecated").Logf(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
// We ususally do about one minor version a month.
|
// We usually do about one minor version a month.
|
||||||
// We want people to run at least the current and previous version without any warnings.
|
// We want people to run at least the current and previous version without any warnings.
|
||||||
// We want people who don't update Hugo that often to see the warnings and errors before we remove the feature.
|
// We want people who don't update Hugo that often to see the warnings and errors before we remove the feature.
|
||||||
func deprecationLogLevelFromVersion(ver string) logg.Level {
|
func deprecationLogLevelFromVersion(ver string) logg.Level {
|
||||||
|
|
|
@ -313,7 +313,7 @@ func (p *Path) norm(s string) string {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
// IdentifierBase satifies identity.Identity.
|
// IdentifierBase satisfies identity.Identity.
|
||||||
func (p *Path) IdentifierBase() string {
|
func (p *Path) IdentifierBase() string {
|
||||||
return p.Base()
|
return p.Base()
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
// NodeShiftTree is the root of a tree that can be shaped using the Shape method.
|
// NodeShiftTree is the root of a tree that can be shaped using the Shape method.
|
||||||
// Note that multipled shapes of the same tree is meant to be used concurrently,
|
// Note that multiplied shapes of the same tree is meant to be used concurrently,
|
||||||
// so use the applicable locking when needed.
|
// so use the applicable locking when needed.
|
||||||
type NodeShiftTree[T any] struct {
|
type NodeShiftTree[T any] struct {
|
||||||
tree *radix.Tree
|
tree *radix.Tree
|
||||||
|
|
|
@ -355,7 +355,7 @@ func (im *identityManager) String() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (im *identityManager) forEeachIdentity(fn func(id Identity) bool) bool {
|
func (im *identityManager) forEeachIdentity(fn func(id Identity) bool) bool {
|
||||||
// The absense of a lock here is debliberate. This is currently opnly used on server reloads
|
// The absence of a lock here is deliberate. This is currently only used on server reloads
|
||||||
// in a single-threaded context.
|
// in a single-threaded context.
|
||||||
for id := range im.ids {
|
for id := range im.ids {
|
||||||
if fn(id) {
|
if fn(id) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package blackfriday holds some compability functions for the old Blackfriday v1 Markdown engine.
|
// Package blackfriday holds some compatibility functions for the old Blackfriday v1 Markdown engine.
|
||||||
package blackfriday
|
package blackfriday
|
||||||
|
|
||||||
import "unicode"
|
import "unicode"
|
||||||
|
|
Loading…
Reference in a new issue