summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-12-20 06:24:30 +0100
committerDennis Kobert <dennis@kobert.dev>2019-12-20 06:24:30 +0100
commit6b448314567db7484415c923ec2da27691fbbbbe (patch)
tree0604a883a673a6ea5832cbcf987142097e8f7eb6 /src
parentb01111bde9e5a7818b995d61bb3e4032bb443b52 (diff)
Fix typo in output function
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() {