chore: fix some typos in comments (#589)

Signed-off-by: gopherorg <gopherworld@icloud.com>
This commit is contained in:
gopherorg
2024-05-13 22:22:52 +08:00
committed by GitHub
parent e2a17cb945
commit bb4c7272d8
4 changed files with 4 additions and 4 deletions
@@ -50,7 +50,7 @@ impl<'de> Visitor<'de> for HashVisitor {
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
formatter.write_str(
"byte array of length 32, or hexidecimal string of 32 bytes beginning with 0x",
"byte array of length 32, or hexadecimal string of 32 bytes beginning with 0x",
)
}
+1 -1
View File
@@ -114,7 +114,7 @@ fn pick_best_ip_from_options(
/// Follow <https://datatracker.ietf.org/doc/html/rfc7239> to decode the Forwarded header value.
/// Roughly, proxies can add new sets of values by appending a comma to the existing list
/// (so we have something like "values1, values2, values3" from proxy1, proxy2 and proxy3 for
/// instance) and then the valeus themselves are ';' separated name=value pairs. The value in each
/// instance) and then the values themselves are ';' separated name=value pairs. The value in each
/// pair may or may not be surrounded in double quotes.
///
/// Examples from the RFC: