From 7b4dc44c459c5d517615e4b77ae9b0852a7d7e17 Mon Sep 17 00:00:00 2001 From: Geoffrey Teale Date: Sun, 9 Jun 2024 21:58:45 +0200 Subject: [PATCH] Update docs to use column number 1 instead of 0 --- tutorial/tutorial.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/tutorial.adoc b/tutorial/tutorial.adoc index 763ef69f..0b269962 100644 --- a/tutorial/tutorial.adoc +++ b/tutorial/tutorial.adoc @@ -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)