aboutsummaryrefslogtreecommitdiff
path: root/src/grid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 3b3acf9b..e904a5b0 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -60,7 +60,7 @@ pub struct Grid {
impl Grid {
pub fn new(rows: usize, cols: usize) -> Grid {
let mut raw = VecDeque::with_capacity(rows);
- for _ in 0..raw.capacity() {
+ for _ in 0..rows {
raw.push_back(Row::new(cols));
}