File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ defmodule IO do
516
516
IO.stream(:stdio, :line)
517
517
518
518
"""
519
+ @ doc since: "1.12.0"
519
520
def stream , do: stream ( :stdio , :line )
520
521
521
522
@ doc """
@@ -534,6 +535,9 @@ defmodule IO do
534
535
Note that an IO stream has side effects and every time
535
536
you go over the stream you may get different results.
536
537
538
+ `stream/1` has been introduced in Elixir v1.12.0,
539
+ while `stream/2` has been available since v1.0.0.
540
+
537
541
## Examples
538
542
539
543
Here is an example on how we mimic an echo server
@@ -557,6 +561,7 @@ defmodule IO do
557
561
IO.binstream(:stdio, :line)
558
562
559
563
"""
564
+ @ doc since: "1.12.0"
560
565
def binstream , do: binstream ( :stdio , :line )
561
566
562
567
@ doc """
@@ -574,6 +579,9 @@ defmodule IO do
574
579
575
580
Finally, do not use this function on IO devices in Unicode
576
581
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.
577
585
"""
578
586
@ spec binstream ( device , :line | pos_integer ) :: Enumerable . t ( )
579
587
def binstream ( device \\ :stdio , line_or_bytes )
You can’t perform that action at this time.
0 commit comments