Skip to content

Commit 0222c98

Browse files
committed
Fixes #124
1 parent 785191b commit 0222c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/latest/primitive-types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ var firstLetterOfAlphabet = /* "a" */97;
118118

119119
**Note**: Char doesn't support Unicode or UTF-8 and is therefore not recommended.
120120

121-
To convert a String to a Char, use `"a".[0]`. To convert a Char to a String, use `String.make(1, 'a')`.
121+
To convert a String to a Char, use `String.get("a", 0)`. To convert a Char to a String, use `String.make(1, 'a')`.
122122

123123
## Regular Expression
124124

0 commit comments

Comments
 (0)