Compare commits
1 Commits
1f58f1ec51
...
3ae45e3cf4
Author | SHA1 | Date |
---|---|---|
Dan Ballard | 3ae45e3cf4 |
|
@ -6,6 +6,7 @@ pub fn both(filename: &str) -> Result<(), Box<dyn Error>> {
|
||||||
let contents = fs::read_to_string(filename)?;
|
let contents = fs::read_to_string(filename)?;
|
||||||
let lines = contents.lines().collect();
|
let lines = contents.lines().collect();
|
||||||
|
|
||||||
|
|
||||||
let trees01 = calc_trees(&lines, 3, 1);
|
let trees01 = calc_trees(&lines, 3, 1);
|
||||||
println!("Encountered {} trees while going down", trees01);
|
println!("Encountered {} trees while going down", trees01);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue