aboutsummaryrefslogtreecommitdiff
path: root/doc/language/function/cpsc-function-chr.7.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/language/function/cpsc-function-chr.7.md')
-rw-r--r--doc/language/function/cpsc-function-chr.7.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/language/function/cpsc-function-chr.7.md b/doc/language/function/cpsc-function-chr.7.md
index 3ae8612..b67b0c6 100644
--- a/doc/language/function/cpsc-function-chr.7.md
+++ b/doc/language/function/cpsc-function-chr.7.md
@@ -7,14 +7,14 @@ cpsc-function-chr - convert a byte code to text
# SYNOPSIS
```text
-CHR(code : INTEGER) RETURNS STRING
+CHR(code : INTEGER) RETURNS CHAR
```
# DESCRIPTION
Provided by the standard string library, loaded and linked by default.
-Convert the low eight bits of code to a one-byte string. The result is STRING, not CHAR, but a STRING of length 1 converts implicitly to CHAR on assignment. Use ASCII codes 1 to 127 for ordinary text; code 0 produces one NUL byte, so LENGTH(CHR(0)) is 1.
+Convert the low eight bits of code to a CHAR. The result is CHAR, not STRING; a CHAR converts implicitly to STRING where a STRING is expected. Use ASCII codes 1 to 127 for ordinary text; code 0 produces one NUL byte, so LENGTH(CHR(0)) is 1.
# EXAMPLE