hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit bac1ba4655875d82ff46b42fa96625bb18e5f2f9
parent 0d415e453bb5c8a01fd124d81f3a88a1cc760bcf
Author: Derek Perkins <derek@derekperkins.com>
Date:   Sat, 13 Feb 2016 02:24:25 -0700

Fix spelling and go vet errors

Diffstat:
Mhugolib/site.go | 6++----
Mparser/page.go | 2+-
Mtpl/template_funcs.go | 2+-
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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)
 
@@ -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 {
@@ -582,8 +582,6 @@ func (s *Site) ReBuild(events []fsnotify.Event) error {
 	} else {
 		return err
 	}
-
-	return nil
 }
 
 func (s *Site) Analyze() error {
diff --git a/parser/page.go b/parser/page.go
@@ -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 (
diff --git a/tpl/template_funcs.go b/tpl/template_funcs.go
@@ -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 {