mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Fix the deprecation warnings for "ord" and "chr".
This commit is contained in:
parent
ba36492d16
commit
2fb2c8e4a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user