From 6504c4e29dcca8110a5aa11b459e20474a4d7582 Mon Sep 17 00:00:00 2001 From: caltechustc Date: Sat, 23 May 2026 17:29:57 +0800 Subject: [PATCH] chore: fix some comments to improve readability Signed-off-by: caltechustc --- idna/src/punycode.rs | 2 +- url/src/path_segments.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idna/src/punycode.rs b/idna/src/punycode.rs index ff7b6adac..62871eac7 100644 --- a/idna/src/punycode.rs +++ b/idna/src/punycode.rs @@ -375,7 +375,7 @@ where if !C::EXTERNAL_CALLER { // We should never get an overflow here with the internal caller being // length-limited, but let's check anyway once here trusting the math - // from RFC 3492 section 6.4 and then omit the overflow checks in the + // from RFC 3492 section 6.4 and then omit the overflow checks in the // loop below. let len_plus_one = input_length .checked_add(1) diff --git a/url/src/path_segments.rs b/url/src/path_segments.rs index e6363c5c8..d83ece8a2 100644 --- a/url/src/path_segments.rs +++ b/url/src/path_segments.rs @@ -11,7 +11,7 @@ use crate::Url; use alloc::string::String; use core::str; -/// Exposes methods to manipulate the path of an URL that is not cannot-be-base. +/// Exposes methods to manipulate the path of a URL that is not cannot-be-base. /// /// The path always starts with a `/` slash, and is made of slash-separated segments. /// There is always at least one segment (which may be the empty string). @@ -213,7 +213,7 @@ impl PathSegmentsMut<'_> { /// # run().unwrap(); /// ``` /// - /// In order to make sure that parsing the serialization of an URL gives the same URL, + /// In order to make sure that parsing the serialization of a URL gives the same URL, /// a segment is ignored if it is `"."` or `".."`: /// /// ```rust