Skip to content

Commit 47551b1

Browse files
author
lcolaholicl
committed
Fix a typo
Fix a typo in `libcore/char/methods.rs`
1 parent 9a90d03 commit 47551b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/char/methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl char {
337337
/// ```
338338
/// // as chars
339339
/// let eastern = '東';
340-
/// let capitol = '京';
340+
/// let capital = '京';
341341
///
342342
/// // both can be represented as three bytes
343343
/// assert_eq!(3, eastern.len_utf8());

0 commit comments

Comments
 (0)