]> git.lizzy.rs Git - rust.git/commitdiff
Fix a typo
authorlcolaholicl <lcolaholicl@gmail.com>
Sat, 29 Jun 2019 17:02:03 +0000 (02:02 +0900)
committerlcolaholicl <lcolaholicl@gmail.com>
Sat, 29 Jun 2019 17:02:03 +0000 (02:02 +0900)
Fix a typo in `libcore/char/methods.rs`

src/libcore/char/methods.rs

index 722c4c805168ffbb7682da6ab09da72c3a351714..b1f43ef99dd99c8c5bf56fcfeaf386eb42567ec9 100644 (file)
@@ -337,7 +337,7 @@ pub fn escape_default(self) -> EscapeDefault {
     /// ```
     /// // as chars
     /// let eastern = '東';
-    /// let capitol = '京';
+    /// let capital = '京';
     ///
     /// // both can be represented as three bytes
     /// assert_eq!(3, eastern.len_utf8());