Skip to content

Commit 03859fb

Browse files
TORIFUKUKaioujosevalim
authored andcommitted
Add @doc since: "1.12.0" and comments (#11046)
1 parent 53e49f3 commit 03859fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/elixir/lib/io.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ defmodule IO do
516516
IO.stream(:stdio, :line)
517517
518518
"""
519+
@doc since: "1.12.0"
519520
def stream, do: stream(:stdio, :line)
520521

521522
@doc """
@@ -534,6 +535,9 @@ defmodule IO do
534535
Note that an IO stream has side effects and every time
535536
you go over the stream you may get different results.
536537
538+
`stream/1` has been introduced in Elixir v1.12.0,
539+
while `stream/2` has been available since v1.0.0.
540+
537541
## Examples
538542
539543
Here is an example on how we mimic an echo server
@@ -557,6 +561,7 @@ defmodule IO do
557561
IO.binstream(:stdio, :line)
558562
559563
"""
564+
@doc since: "1.12.0"
560565
def binstream, do: binstream(:stdio, :line)
561566

562567
@doc """
@@ -574,6 +579,9 @@ defmodule IO do
574579
575580
Finally, do not use this function on IO devices in Unicode
576581
mode as it will return the wrong result.
582+
583+
`binstream/1` has been introduced in Elixir v1.12.0,
584+
while `binstream/2` has been available since v1.0.0.
577585
"""
578586
@spec binstream(device, :line | pos_integer) :: Enumerable.t()
579587
def binstream(device \\ :stdio, line_or_bytes)

0 commit comments

Comments
 (0)