FIX - Char documentation for unexperienced users

This commit is contained in:
Elrendio 2020-05-20 11:20:47 +02:00
parent 692a26e8d7
commit f5b49572dd

View File

@ -575,8 +575,9 @@ pub fn is_alphabetic(self) -> bool {
/// assert!(!'A'.is_lowercase());
/// assert!(!'Δ'.is_lowercase());
///
/// // The various Chinese scripts do not have case, and so:
/// // The various Chinese scripts and punctuation do not have case, and so:
/// assert!(!'中'.is_lowercase());
/// assert!(!' '.is_lowercase());
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
@ -606,8 +607,9 @@ pub fn is_lowercase(self) -> bool {
/// assert!('A'.is_uppercase());
/// assert!('Δ'.is_uppercase());
///
/// // The various Chinese scripts do not have case, and so:
/// // The various Chinese scripts and punctuation do not have case, and so:
/// assert!(!'中'.is_uppercase());
/// assert!(!' '.is_uppercase());
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]