From 2514bb16c682679485dfb5298e1a5797b97bdcd7 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 10 Nov 2020 23:48:09 +0800 Subject: Fix #724, standardize variable naming and update unit tests --- file.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'file.go') diff --git a/file.go b/file.go index 4a2ab10..9adc859 100644 --- a/file.go +++ b/file.go @@ -23,7 +23,7 @@ import ( // NewFile provides a function to create new file by default template. For // example: // -// xlsx := NewFile() +// f := NewFile() // func NewFile() *File { file := make(map[string][]byte) @@ -54,7 +54,7 @@ func NewFile() *File { return f } -// Save provides a function to override the xlsx file with origin path. +// Save provides a function to override the spreadsheet with origin path. func (f *File) Save() error { if f.Path == "" { return fmt.Errorf("no path defined for file, consider File.WriteTo or File.Write") @@ -62,7 +62,7 @@ func (f *File) Save() error { return f.SaveAs(f.Path) } -// SaveAs provides a function to create or update to an xlsx file at the +// SaveAs provides a function to create or update to an spreadsheet at the // provided path. func (f *File) SaveAs(name string, opt ...Options) error { if len(name) > MaxFileNameLength { -- cgit v1.2.1