Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update primitive-types.mdx
  • Loading branch information
m-rinaldi authored May 1, 2025
commit 15741be365101452ea65254c4bb925abc682d0c4
2 changes: 1 addition & 1 deletion pages/docs/manual/v11.0.0/primitive-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var firstLetterOfAlphabet = /* "a" */97;

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

To convert a String to a Char, use `String.get("a", 0)`. To convert a Char to a String, use `String.fromCharCode('a' :> int)`.
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)`.

## Regular Expression

Expand Down