Skip to content

Commit

Permalink
Minor argument name change for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo committed Feb 20, 2018
1 parent aafd9b6 commit 2d4d9c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2d4d9c0

Please sign in to comment.