From b4958570f09b399b777105def1e4f6b1ca9376b6 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 16 May 2024 15:06:28 -0400 Subject: [PATCH] clarify isdigit docs - ASCII digits only (#54492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `isdigit` function only checks for ASCII digits — this PR clarifies the docs to make that explicit. See https://github.com/JuliaLang/julia/pull/54447#issuecomment-2108425286. Closes #54447. --- base/strings/unicode.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/strings/unicode.jl b/base/strings/unicode.jl index 9a44912946205..42a4106d0f52f 100644 --- a/base/strings/unicode.jl +++ b/base/strings/unicode.jl @@ -432,7 +432,7 @@ end """ isdigit(c::AbstractChar) -> Bool -Tests whether a character is a decimal digit (0-9). +Tests whether a character is an ASCII decimal digit (`0`-`9`). See also: [`isletter`](@ref).