Skip to content

Commit

Permalink
Update base/strings/unicode.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Bezanson <[email protected]>
  • Loading branch information
stevengj and JeffBezanson authored Aug 7, 2024
1 parent dcad1b0 commit a5cdf25
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 @@ -258,7 +258,7 @@ julia> textwidth('⛵')
function textwidth(c::AbstractChar)
ismalformed(c) && return 1
i = codepoint(c)
i < 0x7f && return Int(i >= 0x20); # ASCII fast path
i < 0x7f && return Int(i >= 0x20) # ASCII fast path
Int(ccall(:utf8proc_charwidth, Cint, (UInt32,), i))
end

Expand Down

0 comments on commit a5cdf25

Please sign in to comment.