From 25c1803c308812e027ca6ca713882a1e9c959108 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:20:36 +0800 Subject: [PATCH] chore: fix typos (#633) --- src/method.rs | 2 +- src/uri/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/method.rs b/src/method.rs index b7b3b357..04261a37 100644 --- a/src/method.rs +++ b/src/method.rs @@ -463,7 +463,7 @@ mod test { } #[test] - fn test_extention_method() { + fn test_extension_method() { assert_eq!(Method::from_str("WOW").unwrap(), "WOW"); assert_eq!(Method::from_str("wOw!!").unwrap(), "wOw!!"); diff --git a/src/uri/mod.rs b/src/uri/mod.rs index 30be83b5..5ebd47b6 100644 --- a/src/uri/mod.rs +++ b/src/uri/mod.rs @@ -956,7 +956,7 @@ impl PartialEq for Uri { if other.len() < path.len() || path.as_bytes() != &other[..path.len()] { if absolute && path == "/" { - // PathAndQuery can be ommitted, fall through + // PathAndQuery can be omitted, fall through } else { return false; }