Skip to content

Commit

Permalink
Fix spelling and go vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
derekperkins authored and anthonyfok committed Feb 13, 2016
1 parent 0d415e4 commit bac1ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func (s *Site) ReBuild(events []fsnotify.Event) error {
// once readResults is finished it will close coordinator and move along
<-coordinator
// allow that routine to finish, then close page & fileconvchan as we've sent
// everthing to them we need to.
// everything to them we need to.
close(pageChan)
close(fileConvChan)

Expand All @@ -553,7 +553,7 @@ func (s *Site) ReBuild(events []fsnotify.Event) error {

s.timerStep("read & convert pages from source")

fmt.Errorf("%s", errs)
fmt.Errorf("%v", errs)

s.setupPrevNext()
if err = s.BuildSiteMeta(); err != nil {
Expand Down Expand Up @@ -582,8 +582,6 @@ func (s *Site) ReBuild(events []fsnotify.Event) error {
} else {
return err
}

return nil
}

func (s *Site) Analyze() error {
Expand Down
2 changes: 1 addition & 1 deletion parser/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func determineDelims(firstLine []byte) (left, right []byte) {
}

// extractFrontMatterDelims takes a frontmatter from the content bufio.Reader.
// Begining white spaces of the bufio.Reader must be trimmed before call this
// Beginning white spaces of the bufio.Reader must be trimmed before call this
// function.
func extractFrontMatterDelims(r *bufio.Reader, left, right []byte) (fm FrontMatter, err error) {
var (
Expand Down
2 changes: 1 addition & 1 deletion tpl/template_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ func trim(a interface{}, b string) (string, error) {
return strings.Trim(aStr, b), nil
}

// replace all occurences of b with c in a
// replace all occurrences of b with c in a
func replace(a, b, c interface{}) (string, error) {
aStr, err := cast.ToStringE(a)
if err != nil {
Expand Down

0 comments on commit bac1ba4

Please sign in to comment.