diff options
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() { |