Skip to content

Commit ab7d959

Browse files
committed
Variable name changes in print_formatted(..)
1 parent f133ec3 commit ab7d959

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ fn main() -> Result<(), std::io::Error> {
2020
}
2121

2222
fn print_formatted(stations: &[weather::Station]) {
23-
let s = stations
23+
let formatted = stations
2424
.iter()
25-
.map(|st| st.to_string())
25+
.map(|station| station.to_string())
2626
.collect::<Vec<String>>()
2727
.join(", ");
28-
println!("{{{s}}}");
28+
println!("{{{formatted}}}");
2929
}

0 commit comments

Comments
 (0)