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