Skip to content

Commit 3b97de6

Browse files
authored
Rollup merge of rust-lang#100345 - vincenzopalazzo:macros/is_number_doc, r=joshtriplett
docs: remove repetition in `is_numeric` function docs In rust-lang#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`
2 parents 636f0c7 + 23bd7cb commit 3b97de6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/char/methods.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,7 @@ impl char {
892892
///
893893
/// The general categories for numbers (`Nd` for decimal digits, `Nl` for letter-like numeric
894894
/// characters, and `No` for other numeric characters) are specified in the [Unicode Character
895-
/// Database][ucd] [`UnicodeData.txt`]. Note that this means ideographic numbers like '三'
896-
/// are considered alphabetic, not numeric. Please consider to use `is_ascii_digit` or `is_digit`.
895+
/// Database][ucd] [`UnicodeData.txt`].
897896
///
898897
/// This method doesn't cover everything that could be considered a number, e.g. ideographic numbers like '三'.
899898
/// If you want everything including characters with overlapping purposes then you might want to use

0 commit comments

Comments
 (0)