summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-10-22 08:29:25 +0800
committerxuri <xuri.me@gmail.com>2020-10-22 08:29:25 +0800
commitb812e9a1a8ebe9ab22c51553eb46b1f1cff1f7c1 (patch)
treebe006e34cbc796804b6fc91a9214376c2ba06907 /sheet.go
parent4834a058aa3f953a7010704f2358633ae6e1d492 (diff)
New formula function AND (#701) and update doc for the NewSheet (#714)
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/sheet.go b/sheet.go
index 44067fe..8da2e89 100644
--- a/sheet.go
+++ b/sheet.go
@@ -31,10 +31,10 @@ import (
"github.com/mohae/deepcopy"
)
-// NewSheet provides function to create a new sheet by given worksheet name.
-// When creating a new spreadsheet file, the default worksheet will be
-// created. Returns the number of sheets in the workbook (file) after
-// appending the new sheet.
+// NewSheet provides the function to create a new sheet by given a worksheet
+// name and returns the index of the sheets in the workbook
+// (spreadsheet) after it appended. Note that when creating a new spreadsheet
+// file, the default worksheet named `Sheet1` will be created.
func (f *File) NewSheet(name string) int {
// Check if the worksheet already exists
index := f.GetSheetIndex(name)