diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-10 07:21:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 07:21:39 +0200 |
| commit | 3b97de6b1b43263bcf8917e55be3203c5021f0fc (patch) | |
| tree | 10dd0af164b5f62ae9d9ad80d37a50ad2e5766ec | |
| parent | 636f0c71cbb629aa3047c523842b4318117461a7 (diff) | |
| parent | 23bd7cbcb13bdbeec8968d45d63e322c44ce4db2 (diff) | |
| download | rust-3b97de6b1b43263bcf8917e55be3203c5021f0fc.tar.gz rust-3b97de6b1b43263bcf8917e55be3203c5021f0fc.zip | |
Rollup merge of #100345 - vincenzopalazzo:macros/is_number_doc, r=joshtriplett
docs: remove repetition in `is_numeric` function docs In https://github.com/rust-lang/rust/pull/99628 we introduce new docs for the `is_numeric` function, and this is a follow-up PR that removes some unnecessary repetition that may be introduced by some rebasing. `@rustbot` r? `@joshtriplett`
| -rw-r--r-- | library/core/src/char/methods.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs index eae567cad00..2433139a592 100644 --- a/library/core/src/char/methods.rs +++ b/library/core/src/char/methods.rs @@ -892,8 +892,7 @@ impl char { /// /// The general categories for numbers (`Nd` for decimal digits, `Nl` for letter-like numeric /// characters, and `No` for other numeric characters) are specified in the [Unicode Character - /// Database][ucd] [`UnicodeData.txt`]. Note that this means ideographic numbers like '三' - /// are considered alphabetic, not numeric. Please consider to use `is_ascii_digit` or `is_digit`. + /// Database][ucd] [`UnicodeData.txt`]. /// /// This method doesn't cover everything that could be considered a number, e.g. ideographic numbers like '三'. /// If you want everything including characters with overlapping purposes then you might want to use |
