Skip to content

Commit aafd60c

Browse files
authored
Fix possible typo in Processes section (#1697)
1 parent e34933d commit aafd60c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

getting-started/io-and-the-file-system.markdown

+6-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ This happens because the `IO` module actually works with processes (see [chapter
110110
iex> File.close(file)
111111
:ok
112112
iex> IO.write(file, "is anybody out there")
113-
{:error, :terminated}
113+
** (ErlangError) Erlang error: :terminated:
114+
115+
* 1st argument: the device has terminated
116+
117+
(stdlib 5.0) io.erl:94: :io.put_chars(#PID<0.114.0>, "is anybody out there")
118+
iex:4: (file)
114119
```
115120

116121
Let's see in more detail what happens when you request `IO.write(pid, binary)`. The `IO` module sends a message to the process identified by `pid` with the desired operation. A small ad-hoc process can help us see it:

0 commit comments

Comments
 (0)