Skip to content

Commit

Permalink
Rollup merge of #100345 - vincenzopalazzo:macros/is_number_doc, r=jos…
Browse files Browse the repository at this point in the history
…htriplett

docs: remove repetition in `is_numeric` function docs

In #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`
  • Loading branch information
matthiaskrgr authored Aug 10, 2022
2 parents 636f0c7 + 23bd7cb commit 3b97de6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/src/char/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b97de6

Please sign in to comment.