Skip to content

Commit 2ab9334

Browse files
committed
Update UTF16String map function
1 parent 00f0200 commit 2ab9334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/utf16.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function map(fun, str::UTF16String)
302302
end
303303
uc = reinterpret(UInt32, c2)
304304
if uc < 0x10000
305-
if utf16_is_surrogate(UInt16(uc))
305+
if is_surrogate_codeunit(UInt16(uc))
306306
throw(UnicodeError(UTF_ERR_INVALID_CHAR, 0, uc))
307307
end
308308
push!(buf, UInt16(uc))

0 commit comments

Comments
 (0)