summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/solvers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers.rs b/src/solvers.rs
index 99cbba7..0c01042 100644
--- a/src/solvers.rs
+++ b/src/solvers.rs
@@ -30,8 +30,8 @@ impl Wall {
}
}
- pub fn output(&self, w: u32, h: u32) {
- let mut stones = vec![0; w as usize];
+ pub fn output(&self, n: u32, h: u32) {
+ let mut stones = vec![0; n as usize];
for row in 0..h {
self.calculate_row(row, &mut stones);
for &len in stones.iter() {