From 646f2fcfce2bd2dda0c06da56c30f98cf788f0cc Mon Sep 17 00:00:00 2001 From: Paolo Lazzari Date: Tue, 26 Sep 2023 17:36:57 +0200 Subject: [PATCH 1/2] Fix grammar in description of SetColumns method --- grid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grid.go b/grid.go index 777fa5a..5b3f512 100644 --- a/grid.go +++ b/grid.go @@ -77,8 +77,8 @@ func NewGrid() *Grid { // SetColumns defines how the columns of the grid are distributed. Each value // defines the size of one column, starting with the leftmost column. Values -// greater 0 represent absolute column widths (gaps not included). Values less -// or equal 0 represent proportional column widths or fractions of the remaining +// greater than 0 represent absolute column widths (gaps not included). Values less +// than or equal to 0 represent proportional column widths or fractions of the remaining // free space, where 0 is treated the same as -1. That is, a column with a value // of -3 will have three times the width of a column with a value of -1 (or 0). // The minimum width set with SetMinSize() is always observed. From 7a95b02d863ac595971ca25a7636c4676d32522d Mon Sep 17 00:00:00 2001 From: Paolo Lazzari Date: Wed, 27 Sep 2023 08:44:22 +0200 Subject: [PATCH 2/2] Ensure lines have a maximum of 80 characters --- grid.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/grid.go b/grid.go index 5b3f512..48d7bd4 100644 --- a/grid.go +++ b/grid.go @@ -77,11 +77,12 @@ func NewGrid() *Grid { // SetColumns defines how the columns of the grid are distributed. Each value // defines the size of one column, starting with the leftmost column. Values -// greater than 0 represent absolute column widths (gaps not included). Values less -// than or equal to 0 represent proportional column widths or fractions of the remaining -// free space, where 0 is treated the same as -1. That is, a column with a value -// of -3 will have three times the width of a column with a value of -1 (or 0). -// The minimum width set with SetMinSize() is always observed. +// greater than 0 represent absolute column widths (gaps not included). Values +// less than or equal to 0 represent proportional column widths or fractions of +// the remaining free space, where 0 is treated the same as -1. That is, a +// column with a value of -3 will have three times the width of a column with a +// value of -1 (or 0). The minimum width set with SetMinSize() is always +// observed. // // Primitives may extend beyond the columns defined explicitly with this // function. A value of 0 is assumed for any undefined column. In fact, if you