From 916602ae2daa0ded3880fbdbb0263000dedc5b05 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Sat, 4 Jun 2022 17:12:37 -0500 Subject: [PATCH] chore: fix typos (#17) * chore(server.rs): fix `retrieve_listening_addrs` Signed-off-by: Ryan Russell * docs(index.js): Fix `breadcrumb` Signed-off-by: Ryan Russell --- assets/index.js | 2 +- src/server.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/index.js b/assets/index.js index 788d688..39a6294 100644 --- a/assets/index.js +++ b/assets/index.js @@ -87,7 +87,7 @@ class Uploader { } /** - * Add breadcumb + * Add breadcrumb * @param {string} value */ function addBreadcrumb(value) { diff --git a/src/server.rs b/src/server.rs index 982022f..5c8a8e6 100644 --- a/src/server.rs +++ b/src/server.rs @@ -966,7 +966,7 @@ fn to_content_range(range: &Range, complete_length: u64) -> Option fn print_listening(address: &str, port: u16, prefix: &str, tls: bool) { let prefix = prefix.trim_end_matches('/'); - let addrs = retrive_listening_addrs(address); + let addrs = retrieve_listening_addrs(address); let protocol = if tls { "https" } else { "http" }; if addrs.len() == 1 { eprintln!( @@ -982,7 +982,7 @@ fn print_listening(address: &str, port: u16, prefix: &str, tls: bool) { } } -fn retrive_listening_addrs(address: &str) -> Vec { +fn retrieve_listening_addrs(address: &str) -> Vec { if address == "0.0.0.0" { if let Ok(interfaces) = get_if_addrs() { let mut ifaces: Vec = interfaces