commands, helpers: Fix docs
authorbogem <albertnigma@gmail.com>
Thu, 24 Nov 2016 19:30:17 +0000 (20:30 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 2 Jan 2017 16:01:58 +0000 (17:01 +0100)
commands/hugo.go
helpers/url.go

index c4126a0907cba11b255d42371b77ea88f4237c89..4c3f0bdd533ac1059ea6d2ff7e9c0e8f3985e3be 100644 (file)
@@ -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.
index 68079ce203f1e6719727b1fd19121989862bb7df..2f35b059f720a997ab546ff6bb69f03a45a0ac33 100644 (file)
@@ -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 {