aboutsummaryrefslogtreecommitdiff
path: root/src/grid/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r--src/grid/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs
index ac54f580..13e6cc00 100644
--- a/src/grid/mod.rs
+++ b/src/grid/mod.rs
@@ -121,7 +121,7 @@ impl<T: Copy + Clone> Grid<T> {
// TODO (jwilm) Allocating each line at this point is expensive and
// delays startup. A nice solution might be having `Row` delay
// allocation until it's actually used.
- for _ in 0..raw.capacity() {
+ for _ in 0..raw.len() {
raw.push(Row::new(cols, &template));
}