Fix trivial typos in code
authorAnthony Fok <foka@debian.org>
Mon, 16 Nov 2015 14:15:17 +0000 (07:15 -0700)
committerAnthony Fok <foka@debian.org>
Mon, 16 Nov 2015 14:15:17 +0000 (07:15 -0700)
commands/server.go
commands/undraft.go
hugolib/shortcodeparser.go
tpl/template.go

index b1611233ce26867db1b67b412d21405354475878..5f31fcfd16861dcbe9ac7ce3dd1563b0e6a76e75 100644 (file)
@@ -43,7 +43,7 @@ var disableLiveReload bool
 var serverCmd = &cobra.Command{
        Use:   "server",
        Short: "A high performance webserver",
-       Long: `Hugo provides it's own webserver which builds and serves the site.
+       Long: `Hugo provides its own webserver which builds and serves the site.
 While hugo server is high performance, it is a webserver with limited options.
 Many run it in production, but the standard behavior is for people to use it in development
 and use a more full featured server such as Nginx or Caddy.
index 36184060c7714255104beae882372f305b1de148..4cfdfbc11c603482fa2d9f50120d7941b48d4254 100644 (file)
@@ -78,7 +78,7 @@ func Undraft(cmd *cobra.Command, args []string) {
        return
 }
 
-// undraftContent: if the content is a draft, change it's draft status to
+// undraftContent: if the content is a draft, change its draft status to
 // 'false' and set the date to time.Now(). If the draft status is already
 // 'false', don't do anything.
 func undraftContent(p parser.Page) (bytes.Buffer, error) {
index 2efebbe4b3acb1c50c47dec9ef4b0d98753f6851..bef8ed84f0b61db77c9deec99d46f904f0161216 100644 (file)
@@ -164,7 +164,7 @@ type pagelexer struct {
        currLeftDelimItem  itemType
        currRightDelimItem itemType
        currShortcodeName  string          // is only set when a shortcode is in opened state
-       closingState       int             // > 0 = on it's way to be closed
+       closingState       int             // > 0 = on its way to be closed
        elementStepNum     int             // step number in element
        paramElements      int             // number of elements (name + value = 2) found first
        openShortcodes     map[string]bool // set of shortcodes in open state
index 97a04344166632474961c7e6f132bf37821f58aa..00617ff10a23557013949a9e2ca932926cfb7141 100644 (file)
@@ -66,14 +66,14 @@ func T() Template {
        return tmpl
 }
 
-// Resets the internal template state to it's initial state
+// InitializeT resets the internal template state to its initial state
 func InitializeT() Template {
        tmpl = New()
        return tmpl
 }
 
-// Return a new Hugo Template System
-// With all the additional features, templates & functions
+// New returns a new Hugo Template System
+// with all the additional features, templates & functions
 func New() Template {
        var templates = &GoHTMLTemplate{
                Template: *template.New(""),