summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-04-21 00:04:42 +0800
committerxuri <xuri.me@gmail.com>2019-04-21 00:20:19 +0800
commitb45c4b094c6b2a7bfbc9944fc04c51c45b3454a3 (patch)
treecc5e073e1015fcd86e2edf7c06c6b4830f6bc5e5 /comment.go
parent0660f30cddc06de7883d40eb4f8e4945c18a0252 (diff)
Add a check for maximum limit hyperlinks in a worksheet
typo fixed
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/comment.go b/comment.go
index ed3d4a7..79f6fec 100644
--- a/comment.go
+++ b/comment.go
@@ -72,7 +72,7 @@ func (f *File) getSheetComments(sheetID int) string {
// author length is 255 and the max text length is 32512. For example, add a
// comment in Sheet1!$A$30:
//
-// err := xlsx.AddComment("Sheet1", "A30", `{"author":"Excelize: ","text":"This is a comment."}`)
+// err := f.AddComment("Sheet1", "A30", `{"author":"Excelize: ","text":"This is a comment."}`)
//
func (f *File) AddComment(sheet, cell, format string) error {
formatSet, err := parseFormatCommentsSet(format)