Skip to content

Commit

Permalink
Update docs to use column number 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tealeg committed Jun 9, 2024
1 parent aa79218 commit 7b4dc44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorial/tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,10 @@ The code snippet below creates `Col` definition, sets the width and assigns a st

[source,go]
....
// creating a column that relates to worksheet columns A thru E (index 0 to 4)
newColumn := NewColForRange(0,4)
// creating a column that relates to worksheet columns A thru E (index 1 to 5)
newColumn := NewColForRange(1,5)
newColumn.SetWidth(12.5)
// we defined a style above, so let's assigm this style to all cells of the column
// we defined a style above, so let's assign this style to all cells of the column
newColumn.SetStyle(myStyle)
// now associate the sheet with this column
sh.SetColParameters(newColumn)
Expand Down

0 comments on commit 7b4dc44

Please sign in to comment.