Fix the deprecation warnings for "ord" and "chr".

This commit is contained in:
Qi Xiao 2020-08-16 16:02:48 +01:00
parent ba36492d16
commit 2fb2c8e4a3

View File

@ -164,9 +164,9 @@ func (cp *compiler) checkDeprecatedBuiltin(name string, r diag.Ranger) {
msg = `the "-time" command is deprecated; use "time" instead`
case "^~":
msg = `the "^" command is deprecated; use "math:pow" or "math:pow10" instead`
case "ord":
case "ord~":
msg = `the "ord" command is deprecated; use "str:to-codepoints" instead`
case "chr":
case "chr~":
msg = `the "chr" command is deprecated; use "str:from-codepoints" instead`
default:
return