summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
Diffstat (limited to 'col.go')
-rw-r--r--col.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/col.go b/col.go
index 2e3190c..2fd90b2 100644
--- a/col.go
+++ b/col.go
@@ -604,7 +604,7 @@ func (f *File) positionObjectPixels(sheet string, col, row, x1, y1, width, heigh
}
// getColWidth provides a function to get column width in pixels by given
-// sheet name and column index.
+// sheet name and column number.
func (f *File) getColWidth(sheet string, col int) int {
xlsx, _ := f.workSheetReader(sheet)
if xlsx.Cols != nil {
@@ -623,7 +623,7 @@ func (f *File) getColWidth(sheet string, col int) int {
}
// GetColWidth provides a function to get column width by given worksheet name
-// and column index.
+// and column name.
func (f *File) GetColWidth(sheet, col string) (float64, error) {
colNum, err := ColumnNameToNumber(col)
if err != nil {