Преглед изворни кода

docs(idna): fix repeated words in uts46 documentation (#1122)

Fixes #1052

- Remove duplicated "the" in two doc comments
- Fix grammar: "may be resemble" → "may resemble"
June пре 4 месеци
родитељ
комит
55ff72dd67
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      idna/src/uts46.rs

+ 3 - 3
idna/src/uts46.rs

@@ -626,7 +626,7 @@ impl Uts46 {
     ///
     /// This is an imperfect security mechanism, because [the Punycode form itself may be
     /// resemble a user-recognizable name](https://www.unicode.org/reports/tr36/#TablePunycodeSpoofing).
-    /// However, since this mechanism is common practice, this API provides support for The
+    /// However, since this mechanism is common practice, this API provides support for
     /// the mechanism.
     ///
     /// ASCII labels always pass through as ASCII and labels with errors always pass through
@@ -760,9 +760,9 @@ impl Uts46 {
     /// # Security considerations
     ///
     /// Showing labels whose Unicode form might mislead the user as Punycode instead is
-    /// an imperfect security mechanism, because [the Punycode form itself may be resemble
+    /// an imperfect security mechanism, because [the Punycode form itself may resemble
     /// a user-recognizable name](https://www.unicode.org/reports/tr36/#TablePunycodeSpoofing).
-    /// However, since this mechanism is common practice, this API provides support for the
+    /// However, since this mechanism is common practice, this API provides support for
     /// the mechanism.
     ///
     /// Punycode processing is quadratic, so to avoid denial of service, this method imposes