summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-11 12:25:52 -0400
committerPietro Gagliardi <[email protected]>2014-03-11 12:25:52 -0400
commitcbcf9da6a03d3e559eaf9744947208fcb2a18c0a (patch)
tree477fe334d42021b8e2e034ee19d98f13c619422f /grid.go
parent9a9a1d21bbd25b23cf40128937e1872e707dea0b (diff)
More compiler error fixes.
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/grid.go b/grid.go
index ed832fb..8cdc7a3 100644
--- a/grid.go
+++ b/grid.go
@@ -76,7 +76,7 @@ func (g *Grid) SetFilling(row int, column int) {
if g.created {
panic(fmt.Errorf("Grid.SetFilling() called after window create"))
}
- if row < 0 || column < 0 || row > len(g,filling) || column > len(g.filling[row]) {
+ if row < 0 || column < 0 || row > len(g.filling) || column > len(g.filling[row]) {
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetFilling()", row, column))
}
g.filling[row][column] = true
@@ -94,7 +94,7 @@ func (g *Grid) SetStretchy(row int, column int) {
if g.created {
panic(fmt.Errorf("Grid.SetFilling() called after window create"))
}
- if row < 0 || column < 0 || row > len(g,filling) || column > len(g.filling[row]) {
+ if row < 0 || column < 0 || row > len(g.filling) || column > len(g.filling[row]) {
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetStretchy()", row, column))
}
g.stretchyrow = row