@@ -31,19 +31,19 @@ defmodule StringIO do
3131
3232 ## Examples
3333
34- iex> StringIO.open("foo", [], fn(pid) ->
35- ...> input = IO.gets(pid, ">")
36- ...> IO.write(pid, "The input was #{input}")
37- ...> StringIO.contents(pid)
38- ...> end)
39- {:ok, {"", "The input was foo"}}
40-
41- iex> StringIO.open("foo", [capture_prompt: true], fn(pid) ->
42- ...> input = IO.gets(pid, ">")
43- ...> IO.write(pid, "The input was #{input}")
44- ...> StringIO.contents(pid)
45- ...> end)
46- {:ok, {"", ">The input was foo"}}
34+ iex> StringIO.open("foo", [], fn(pid) ->
35+ ...> input = IO.gets(pid, ">")
36+ ...> IO.write(pid, "The input was #{input}")
37+ ...> StringIO.contents(pid)
38+ ...> end)
39+ {:ok, {"", "The input was foo"}}
40+
41+ iex> StringIO.open("foo", [capture_prompt: true], fn(pid) ->
42+ ...> input = IO.gets(pid, ">")
43+ ...> IO.write(pid, "The input was #{input}")
44+ ...> StringIO.contents(pid)
45+ ...> end)
46+ {:ok, {"", ">The input was foo"}}
4747
4848 """
4949 @ spec open ( binary , keyword , ( pid -> res ) ) :: { :ok , res } when res: var
0 commit comments