Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2017-06-21 22:17:50 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-21 22:37:53 +0300
commit58ce9213c003dbe692f1407a7f93c3e869b37f9a (patch)
tree4485b1186197c04fbbacc9b76a9f8bba35dbe6fe /releaser/releasenotes_writer.go
parentae3039b6e81149db3ae037e45fb1fc8642354f1b (diff)
releaser: Fix typo, change "relase" to "release"
Diffstat (limited to 'releaser/releasenotes_writer.go')
-rw-r--r--releaser/releasenotes_writer.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
index d892eb7fa..bb057324a 100644
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -39,7 +39,7 @@ const (
{{ if eq (len .All) 1 }}
This is a bug-fix release with one important fix.
{{ else }}
-This is a bug-fix relase with a couple of important fixes.
+This is a bug-fix release with a couple of important fixes.
{{ end }}
{{ else }}
This release represents **{{ len .All }} contributions by {{ len $contribsPerAuthor }} contributors** to the main Hugo code base.
@@ -185,16 +185,16 @@ func writeReleaseNotesToTmpFile(version string, infos gitInfos) (string, error)
return f.Name(), nil
}
-func getRelaseNotesDocsTempDirAndName(version string) (string, string) {
+func getReleaseNotesDocsTempDirAndName(version string) (string, string) {
return hugoFilepath("temp"), fmt.Sprintf("%s-relnotes.md", version)
}
-func getRelaseNotesDocsTempFilename(version string) string {
- return filepath.Join(getRelaseNotesDocsTempDirAndName(version))
+func getReleaseNotesDocsTempFilename(version string) string {
+ return filepath.Join(getReleaseNotesDocsTempDirAndName(version))
}
func writeReleaseNotesToTemp(version string, infos gitInfos) (string, error) {
- docsTempPath, name := getRelaseNotesDocsTempDirAndName(version)
+ docsTempPath, name := getReleaseNotesDocsTempDirAndName(version)
os.Mkdir(docsTempPath, os.ModePerm)
f, err := os.Create(filepath.Join(docsTempPath, name))