From ecbc6e2fde1941cb5ac9e5f3bfce329e7bfa8825 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 4 Apr 2022 00:21:33 +0800 Subject: ref #65, new formula functions: T.INV and T.INV.2T - Typo fixed --- file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.go') diff --git a/file.go b/file.go index 0135e20..9707a79 100644 --- a/file.go +++ b/file.go @@ -63,7 +63,7 @@ func (f *File) Save() error { return f.SaveAs(f.Path) } -// SaveAs provides a function to create or update to an spreadsheet at the +// SaveAs provides a function to create or update to a spreadsheet at the // provided path. func (f *File) SaveAs(name string, opt ...Options) error { if len(name) > MaxFileNameLength { @@ -81,7 +81,7 @@ func (f *File) SaveAs(name string, opt ...Options) error { return ErrWorkbookExt } f.setContentTypePartProjectExtensions(contentType) - file, err := os.OpenFile(filepath.Clean(name), os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0o600) + file, err := os.OpenFile(filepath.Clean(name), os.O_WRONLY|os.O_TRUNC|os.O_CREATE, os.ModePerm) if err != nil { return err } -- cgit v1.2.1