summaryrefslogtreecommitdiff
path: root/day3/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-12-07 22:36:39 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-12-07 22:36:39 +0100
commit55138770a6057e854ed8d7ae999433ab08d264d7 (patch)
tree7c33d04fc67e5b204aa836baf65a645de9b6f7aa /day3/src
parent467181d7b73b9747d8ea88041187c06d12cc0adf (diff)
Rename char variable
Diffstat (limited to 'day3/src')
-rw-r--r--day3/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/day3/src/main.rs b/day3/src/main.rs
index aa7eda7..10c1f81 100644
--- a/day3/src/main.rs
+++ b/day3/src/main.rs
@@ -13,8 +13,8 @@ fn main() -> Result<(), std::io::Error> {
let mut epsilon_string = String::new();
for line in lines {
- for (index, char) in line.chars().enumerate() {
- bits[index] += char.to_digit(10).unwrap();
+ for (index, character) in line.chars().enumerate() {
+ bits[index] += character.to_digit(10).unwrap();
}
}