1
Fork 0

fix the same typo in doctest

This commit is contained in:
lcolaholicl 2019-06-30 02:46:45 +09:00
parent 47551b1513
commit 1fd64cf9b5

View file

@ -341,12 +341,12 @@ impl char {
/// ///
/// // both can be represented as three bytes /// // both can be represented as three bytes
/// assert_eq!(3, eastern.len_utf8()); /// assert_eq!(3, eastern.len_utf8());
/// assert_eq!(3, capitol.len_utf8()); /// assert_eq!(3, capital.len_utf8());
/// ///
/// // as a &str, these two are encoded in UTF-8 /// // as a &str, these two are encoded in UTF-8
/// let tokyo = "東京"; /// let tokyo = "東京";
/// ///
/// let len = eastern.len_utf8() + capitol.len_utf8(); /// let len = eastern.len_utf8() + capital.len_utf8();
/// ///
/// // we can see that they take six bytes total... /// // we can see that they take six bytes total...
/// assert_eq!(6, tokyo.len()); /// assert_eq!(6, tokyo.len());