Skip to content

Commit aadae1d

Browse files
committed
erts: Fix typo in iodata type docs
which caused shell_docs_SUITE:render to fail. There is no iolist_to_binary/2.
1 parent 550d7b7 commit aadae1d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

erts/preloaded/src/erlang.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ This datatype is used to represent data that is meant to be output using
148148
any I/O module. For example: `file:write/2` or `gen_tcp:send/2`.
149149

150150
To convert an `t:iodata/0` term to `t:binary/0` you can use
151-
[iolist_to_binary/2](`iolist_to_binary/1`). To transcode a `t:string/0` or
151+
[iolist_to_binary/1](`iolist_to_binary/1`). To transcode a `t:string/0` or
152152
`t:unicode:chardata/0` to `t:iodata/0` you can use `unicode:characters_to_binary/1`.
153153
""".
154154
-type iodata() :: iolist() | binary().

lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_iodata_0_type.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
gen_tcp:send/2.
1616

1717
To convert an iodata/0 term to binary/0 you can use
18-
iolist_to_binary/2. To transcode a string/0 or 
18+
iolist_to_binary/1. To transcode a string/0 or 
1919
unicode:chardata/0 to iodata/0 you can use 
2020
unicode:characters_to_binary/1.

0 commit comments

Comments
 (0)