Skip to content

Commit

Permalink
hugolib: More spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 8, 2017
1 parent 46ac745 commit e2f8664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions hugolib/handler_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type MetaHandler interface {
// HandledResults is a channel for HandledResult.
type HandleResults chan<- HandledResult

// NewMetaHandler creates a MetaHandle for a given extention.
// NewMetaHandler creates a MetaHandle for a given extensions.
func NewMetaHandler(in string) *MetaHandle {
x := &MetaHandle{ext: in}
x.Handler()
Expand All @@ -60,7 +60,7 @@ func (mh *MetaHandle) Read(f *source.File, s *Site, results HandleResults) {
results <- HandledResult{err: errors.New("No handler found"), file: f}
}

// Convert handles the convertion of files and pages.
// Convert handles the conversion of files and pages.
func (mh *MetaHandle) Convert(i interface{}, s *Site, results HandleResults) {
h := mh.Handler()

Expand All @@ -84,7 +84,7 @@ func (mh *MetaHandle) Convert(i interface{}, s *Site, results HandleResults) {
}
}

// Handler finds the registered handler for the used extention.
// Handler finds the registered handler for the used extensions.
func (mh *MetaHandle) Handler() Handler {
if mh.handler == nil {
mh.handler = FindHandler(mh.ext)
Expand All @@ -107,7 +107,7 @@ func FindHandler(ext string) Handler {
return nil
}

// HandlerMatch checks if the given extention matches.
// HandlerMatch checks if the given extensions matches.
func HandlerMatch(h Handler, ext string) bool {
for _, x := range h.Extensions() {
if ext == x {
Expand Down
2 changes: 1 addition & 1 deletion hugolib/multilingual.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Multilingual struct {
langMapInit sync.Once
}

// Language returns the Language assosiated with the given string.
// Language returns the Language associated with the given string.
func (ml *Multilingual) Language(lang string) *helpers.Language {
ml.langMapInit.Do(func() {
ml.langMap = make(map[string]*helpers.Language)
Expand Down

0 comments on commit e2f8664

Please sign in to comment.