Skip to content

Commit f5b4957

Browse files
author
Elrendio
committed
FIX - Char documentation for unexperienced users
1 parent 692a26e commit f5b4957

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libcore/char/methods.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,9 @@ impl char {
575575
/// assert!(!'A'.is_lowercase());
576576
/// assert!(!'Δ'.is_lowercase());
577577
///
578-
/// // The various Chinese scripts do not have case, and so:
578+
/// // The various Chinese scripts and punctuation do not have case, and so:
579579
/// assert!(!'中'.is_lowercase());
580+
/// assert!(!' '.is_lowercase());
580581
/// ```
581582
#[stable(feature = "rust1", since = "1.0.0")]
582583
#[inline]
@@ -606,8 +607,9 @@ impl char {
606607
/// assert!('A'.is_uppercase());
607608
/// assert!('Δ'.is_uppercase());
608609
///
609-
/// // The various Chinese scripts do not have case, and so:
610+
/// // The various Chinese scripts and punctuation do not have case, and so:
610611
/// assert!(!'中'.is_uppercase());
612+
/// assert!(!' '.is_uppercase());
611613
/// ```
612614
#[stable(feature = "rust1", since = "1.0.0")]
613615
#[inline]

0 commit comments

Comments
 (0)