From: bogem Date: Thu, 24 Nov 2016 19:30:17 +0000 (+0100) Subject: commands, helpers: Fix docs X-Git-Tag: v0.19~139 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4352156a2730eddda6b05b66b73d910e4ac9abff;p=brevno-suite%2Fhugo commands, helpers: Fix docs --- diff --git a/commands/hugo.go b/commands/hugo.go index c4126a09..4c3f0bdd 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -434,9 +434,9 @@ func watchConfig() { } func build(watches ...bool) error { - // Hugo writes the output to memory instead of the disk + // Hugo writes the output to memory instead of the disk. // This is only used for benchmark testing. Cause the content is only visible - // in memory + // in memory. if renderToMemory { hugofs.SetDestination(new(afero.MemMapFs)) // Rendering to memoryFS, publish to Root regardless of publishDir. diff --git a/helpers/url.go b/helpers/url.go index 68079ce2..2f35b059 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -147,7 +147,7 @@ func MakePermalink(host, plink string) *url.URL { return base } -// AbsURL creates a absolute URL from the relative path given and the BaseURL set in config. +// AbsURL creates an absolute URL from the relative path given and the BaseURL set in config. func (p *PathSpec) AbsURL(in string, addLanguage bool) string { url, err := url.Parse(in) if err != nil {