From 55138770a6057e854ed8d7ae999433ab08d264d7 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 7 Dec 2021 22:36:39 +0100 Subject: Rename char variable --- day3/src/main.rs | 4 ++-- 1 file 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(); } } -- cgit v1.2.3-18-g5258