diff options
author | Dennis Kobert <dennis@kobert.dev> | 2019-12-20 06:24:30 +0100 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2019-12-20 06:24:30 +0100 |
commit | 6b448314567db7484415c923ec2da27691fbbbbe (patch) | |
tree | 0604a883a673a6ea5832cbcf987142097e8f7eb6 /src | |
parent | b01111bde9e5a7818b995d61bb3e4032bb443b52 (diff) |
Fix typo in output function
Diffstat (limited to 'src')
-rw-r--r-- | src/solvers.rs | 4 |
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() { |