From b812e9a1a8ebe9ab22c51553eb46b1f1cff1f7c1 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 22 Oct 2020 08:29:25 +0800 Subject: New formula function AND (#701) and update doc for the NewSheet (#714) --- sheet.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sheet.go') 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) -- cgit v1.2.1