diff options
author | xuri <xuri.me@gmail.com> | 2022-04-04 00:21:33 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-04-04 00:21:33 +0800 |
commit | ecbc6e2fde1941cb5ac9e5f3bfce329e7bfa8825 (patch) | |
tree | 24597853107787b521fc98263f19c242ac2be6f5 /file.go | |
parent | be8fc0a4c5795bb793b171c25fd90e0369812a05 (diff) |
ref #65, new formula functions: T.INV and T.INV.2T
- Typo fixed
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |