Skip to content

Commit 6c94bd8

Browse files
authored
Fix missing ::Char annotation on category_abbrev (JuliaLang#25236)
Just something I noticed looking over this code, seems good to do to ensure that we can change the implementation of this function in 1.x if we want to introduce AbstractChar.
1 parent 26cbf72 commit 6c94bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/strings/unicode.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function category_code(c::Char)
305305
end
306306

307307
# more human-readable representations of the category code
308-
function category_abbrev(c)
308+
function category_abbrev(c::Char)
309309
ismalformed(c) && return "Ma"
310310
c '\U10ffff' || return "In"
311311
unsafe_string(ccall(:utf8proc_category_string, Cstring, (UInt32,), c))

0 commit comments

Comments
 (0)