Skip to content

Commit bc0adc2

Browse files
committed
Merge pull request #2316 from alco/string-to_char_list
String to char list
2 parents 7845359 + 67f2be2 commit bc0adc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
* Backwards incompatible changes
4040
* [Exception] Exceptions now generate structs instead of records
41+
* [String] `String.to_char_list/1` no longer returns a tuple and raises in case of failure (`String.to_char_list!/1` used to behave like that)
42+
* [String] `String.to_char_list!/1` is removed
4143

4244

4345
# v0.13.2 (2014-05-11)

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)