diff options
Diffstat (limited to 'src/print.rs')
| -rw-r--r-- | src/print.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print.rs b/src/print.rs index fb9ee67..d171d7c 100644 --- a/src/print.rs +++ b/src/print.rs @@ -146,7 +146,7 @@ const CHARS_TABLE: [SymbolTableElement; 25] = [ ]; #[allow(clippy::unusual_byte_groupings)] -const TO_HIDE_LEGENDE_ELEMENTS: [u32; 26] = [ +const TO_HIDE_LEGEND_ELEMENTS: [u32; 26] = [ 0b000_000_000_000_0_000_000_000_000, 0b000_000_000_000_1_000_000_000_000, 0b000_000_001_000_0_000_100_000_000, @@ -185,7 +185,7 @@ pub fn print_status_line(target_str: &String, ip: &IpAddr) { println!("PING {} ({})", target_str, ip); } -pub fn print_legende_line() { +pub fn print_legend_line() { let nb_cols: u32 = if let Some((w, _)) = term_size::dimensions() { w as u32 } else { @@ -200,7 +200,7 @@ pub fn print_legende_line() { let nb_elements_to_skip = index; for (index, element) in CHARS_TABLE.iter().enumerate() { - if (TO_HIDE_LEGENDE_ELEMENTS[nb_elements_to_skip]) & (1 << index) != 0 { + if (TO_HIDE_LEGEND_ELEMENTS[nb_elements_to_skip]) & (1 << index) != 0 { continue; } print!( |