]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in proc_macro Span::eq
authorjam1garner <jam@jam1.re>
Sat, 17 Sep 2022 23:15:30 +0000 (19:15 -0400)
committerjam1garner <jam@jam1.re>
Sat, 17 Sep 2022 23:15:30 +0000 (19:15 -0400)
library/proc_macro/src/lib.rs

index 495c1c5ae46c155bb0877a3a22dbc5756f3b2a83..f9c7d3e172cbe9c9c900739d523ab8d82527d6e6 100644 (file)
@@ -533,7 +533,7 @@ pub fn located_at(&self, other: Span) -> Span {
         other.resolved_at(*self)
     }
 
-    /// Compares to spans to see if they're equal.
+    /// Compares two spans to see if they're equal.
     #[unstable(feature = "proc_macro_span", issue = "54725")]
     pub fn eq(&self, other: &Span) -> bool {
         self.0 == other.0