Skip to content

Commit 67f2be2

Browse files
committed
Fix example for String.to_char_list
1 parent fe5d8e6 commit 67f2be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/string.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,8 @@ defmodule String do
11861186
11871187
## Examples
11881188
1189-
iex> List.from_char_data("æß")
1190-
{:ok, 'æß'}
1189+
iex> String.to_char_list("æß")
1190+
'æß'
11911191
11921192
Notice that this function expect a list of integer representing
11931193
UTF-8 codepoints. If you have a raw binary, you must instead use

0 commit comments

Comments
 (0)