diff options
| author | Elrendio <oscar.walter@ens.fr> | 2020-05-20 11:20:47 +0200 |
|---|---|---|
| committer | Elrendio <oscar.walter@ens.fr> | 2020-05-20 12:18:09 +0200 |
| commit | f5b49572dde8743d9c4f36d736e560f3b21d0527 (patch) | |
| tree | 144d0c7be8b166ff80fcc3538d5491f82fb39b9a | |
| parent | 692a26e8d727a79340937565cf77c573d3a2294f (diff) | |
| download | rust-f5b49572dde8743d9c4f36d736e560f3b21d0527.tar.gz rust-f5b49572dde8743d9c4f36d736e560f3b21d0527.zip | |
FIX - Char documentation for unexperienced users
| -rw-r--r-- | src/libcore/char/methods.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/char/methods.rs b/src/libcore/char/methods.rs index 302400744e2..069bde3786e 100644 --- a/src/libcore/char/methods.rs +++ b/src/libcore/char/methods.rs @@ -575,8 +575,9 @@ impl char { /// 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 @@ impl char { /// 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] |
