diff options
author | sceneq <sceneq@users.noreply.github.com> | 2022-05-16 22:05:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 21:05:22 +0800 |
commit | be5a4033c0c7de6247c02dc3ab76b634ac19d4c6 (patch) | |
tree | d4958490277d9f2ebea71547cb19a411b592c4e8 /file.go | |
parent | 19a0cf3cec71fc49851d29fb420674b027f50d93 (diff) |
This closes #1229, rename ErrMaxFileNameLength to ErrMaxFilePathLength (#1230)
Co-authored-by: sceneq
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,8 +66,8 @@ func (f *File) Save() error { // 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 { - return ErrMaxFileNameLength + if len(name) > MaxFilePathLength { + return ErrMaxFilePathLength } f.Path = name contentType, ok := map[string]string{ |