Minor argument name change for clarity.

This commit is contained in:
Oliver 2018-02-20 16:47:11 +01:00
parent aafd9b6c4b
commit 2d4d9c0a7d
1 changed files with 3 additions and 3 deletions

View File

@ -115,12 +115,12 @@ func (g *Grid) SetColumns(columns ...int) *Grid {
// SetSize is a shortcut for SetRows() and SetColumns() where all row and column
// values are set to the given size values. See SetRows() for details on sizes.
func (g *Grid) SetSize(rows, columns, rowSize, columnSize int) *Grid {
g.rows = make([]int, rows)
func (g *Grid) SetSize(numRows, numColumns, rowSize, columnSize int) *Grid {
g.rows = make([]int, numRows)
for index := range g.rows {
g.rows[index] = rowSize
}
g.columns = make([]int, columns)
g.columns = make([]int, numColumns)
for index := range g.columns {
g.columns[index] = columnSize
}