diff --git a/src/problem_1358_number_of_substrings_containing_all_three_characters/sliding_window.rs b/src/problem_1358_number_of_substrings_containing_all_three_characters/sliding_window.rs index b240b7fc8..f81a79cc1 100644 --- a/src/problem_1358_number_of_substrings_containing_all_three_characters/sliding_window.rs +++ b/src/problem_1358_number_of_substrings_containing_all_three_characters/sliding_window.rs @@ -4,17 +4,17 @@ pub struct Solution; #[derive(Default)] struct Counter { - a_count: u32, - b_count: u32, - c_count: u32, + a: u32, + b: u32, + c: u32, } impl Counter { fn get(&mut self, c: u8) -> &mut u32 { match c { - b'a' => &mut self.a_count, - b'b' => &mut self.b_count, - _ => &mut self.c_count, + b'a' => &mut self.a, + b'b' => &mut self.b, + _ => &mut self.c, } } }