From 72051a0c260abf4446a946bddc446a67e30cd50d Mon Sep 17 00:00:00 2001 From: alex-theqoos Date: Fri, 18 Sep 2020 16:12:49 +0900 Subject: [PATCH] Fix typo in a comment --- file.go | 2 +- ini.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file.go b/file.go index 7eecaca..8f9a20b 100644 --- a/file.go +++ b/file.go @@ -499,7 +499,7 @@ func (f *File) WriteTo(w io.Writer) (int64, error) { // SaveToIndent writes content to file system with given value indention. func (f *File) SaveToIndent(filename, indent string) error { // Note: Because we are truncating with os.Create, - // so it's safer to save to a temporary file location and rename afte done. + // so it's safer to save to a temporary file location and rename after done. buf, err := f.writeToBuffer(indent) if err != nil { return err diff --git a/ini.go b/ini.go index 80ebf3a..20d7615 100644 --- a/ini.go +++ b/ini.go @@ -111,7 +111,7 @@ type LoadOptions struct { UnparseableSections []string // KeyValueDelimiters is the sequence of delimiters that are used to separate key and value. By default, it is "=:". KeyValueDelimiters string - // KeyValueDelimiters is the delimiter that are used to separate key and value output. By default, it is "=". + // KeyValueDelimiterOnWrite is the delimiter that are used to separate key and value output. By default, it is "=". KeyValueDelimiterOnWrite string // ChildSectionDelimiter is the delimiter that is used to separate child sections. By default, it is ".". ChildSectionDelimiter string