summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-06-13 14:38:01 +0800
committerxuri <xuri.me@gmail.com>2021-06-13 14:38:01 +0800
commitbffb5d6b41f409258a2f0c126a04127f31e28a06 (patch)
treeb74428a7b8eb1fec5d53ba31c0212f7927522c15 /rows.go
parente354db69b0bdd02357c221af9ef09695dd8fd122 (diff)
make the caller of `getRowHeight` function adapt row number change, update comment: use rows number instead of rows index.
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rows.go b/rows.go
index 70a59d8..6c0e816 100644
--- a/rows.go
+++ b/rows.go
@@ -266,7 +266,7 @@ func (f *File) SetRowHeight(sheet string, row int, height float64) error {
}
// getRowHeight provides a function to get row height in pixels by given sheet
-// name and row index.
+// name and row number.
func (f *File) getRowHeight(sheet string, row int) int {
ws, _ := f.workSheetReader(sheet)
for i := range ws.SheetData.Row {
@@ -280,7 +280,7 @@ func (f *File) getRowHeight(sheet string, row int) int {
}
// GetRowHeight provides a function to get row height by given worksheet name
-// and row index. For example, get the height of the first row in Sheet1:
+// and row number. For example, get the height of the first row in Sheet1:
//
// height, err := f.GetRowHeight("Sheet1", 1)
//