about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/char/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/char/methods.rs b/src/libcore/char/methods.rs
index 722c4c80516..b1f43ef99dd 100644
--- a/src/libcore/char/methods.rs
+++ b/src/libcore/char/methods.rs
@@ -337,7 +337,7 @@ impl char {
     /// ```
     /// // as chars
     /// let eastern = '東';
-    /// let capitol = '京';
+    /// let capital = '京';
     ///
     /// // both can be represented as three bytes
     /// assert_eq!(3, eastern.len_utf8());