Skip to content

Commit

Permalink
Fix missing ::Char annotation on category_abbrev (#25236)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Keno authored Dec 22, 2017
1 parent 26cbf72 commit 6c94bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/strings/unicode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function category_code(c::Char)
end

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

0 comments on commit 6c94bd8

Please sign in to comment.