Skip to content

Commit ebedad4

Browse files
authored
Update primitive-types.mdx (#995)
* Update primitive-types.mdx * Update primitive-types.mdx
1 parent 42c4a66 commit ebedad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/v11.0.0/primitive-types.mdx

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

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

106-
To convert a String to a Char, use `String.get("a", 0)`. To convert a Char to a String, use `String.make(1, 'a')`.
106+
To convert a String to a Char, use `OCamlCompat.String.get("a", 0)`. To convert a Char to a String, use `OCamlCompat.String.make(0, 'a')` or `String.fromCharCode('a' :> int)`.
107107

108108
## Regular Expression
109109

0 commit comments

Comments
 (0)