summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hitomezashi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hitomezashi.rs b/src/hitomezashi.rs
index 2b1e9ea..a14296a 100644
--- a/src/hitomezashi.rs
+++ b/src/hitomezashi.rs
@@ -53,7 +53,7 @@ pub fn hitomezashi(width: usize, height: usize, skew: Option<f64>) {
col_bits.push(brn.sample(&mut rng));
}
- let mut alt_bits: Vec<bool> = Vec::with_capacity(width - 1);
+ let mut alt_bits: Vec<bool> = Vec::with_capacity(width);
for col in 0..width {
alt_bits.push(col % 2 == 1);