summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sheet.go b/sheet.go
index bc7cb75..f2b6e17 100644
--- a/sheet.go
+++ b/sheet.go
@@ -12,9 +12,9 @@ import (
"unicode/utf8"
)
-// NewSheet provides function to create a new sheet by given index, when
-// creating a new XLSX file, the default sheet will be create, when you create
-// a new file.
+// NewSheet provides function to create a new sheet by given worksheet name,
+// when creating a new XLSX file, the default sheet will be create, when you
+// create a new file.
func (f *File) NewSheet(name string) int {
// Check if the worksheet already exists
if f.GetSheetIndex(name) != 0 {