diff options
author | xuri <xuri.me@gmail.com> | 2020-10-12 00:05:27 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-10-12 00:05:27 +0800 |
commit | ac3dce0beaef6cbf2b08db4a1e2b2a8d100c77ca (patch) | |
tree | 6698f873e2e99666521c28eac470a4a89ee76836 /sheet.go | |
parent | d1926675f81fcf9afb658e1e51cd4e43d0d05bc9 (diff) |
- Resolve #711, update docs for the GetSheetIndex
- Update unit test
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -360,8 +360,8 @@ func (f *File) getSheetID(name string) int { } // GetSheetIndex provides a function to get a sheet index of the workbook by -// the given sheet name. If the given sheet name is invalid, it will return an -// integer type value 0. +// the given sheet name. If the given sheet name is invalid or sheet doesn't +// exist, it will return an integer type value -1. func (f *File) GetSheetIndex(name string) int { var idx = -1 for index, sheet := range f.GetSheetList() { |