Skip to content

Commit

Permalink
Variable name changes in print_formatted(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
hesampakdaman committed May 22, 2024
1 parent f133ec3 commit ab7d959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ fn main() -> Result<(), std::io::Error> {
}

fn print_formatted(stations: &[weather::Station]) {
let s = stations
let formatted = stations
.iter()
.map(|st| st.to_string())
.map(|station| station.to_string())
.collect::<Vec<String>>()
.join(", ");
println!("{{{s}}}");
println!("{{{formatted}}}");
}

0 comments on commit ab7d959

Please sign in to comment.