File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ defmodule IO do
12
12
(as shown in typespecs). For more information on chardata, see the
13
13
"IO data" section below.
14
14
15
+ The functions of this module use UNIX-style naming where possible.
16
+
15
17
## IO devices
16
18
17
19
An IO device may be an atom or a PID. In case it is an atom,
@@ -294,6 +296,8 @@ defmodule IO do
294
296
By default, the `device` is the standard output. It returns `:ok`
295
297
if it succeeds.
296
298
299
+ Trivia: `puts` is shorthand for `put string`.
300
+
297
301
## Examples
298
302
299
303
IO.puts("Hello World!")
@@ -569,6 +573,8 @@ defmodule IO do
569
573
for instance, `{:error, :estale}` if reading from an
570
574
NFS volume
571
575
576
+ Trivia: `gets` is shorthand for `get string`.
577
+
572
578
## Examples
573
579
574
580
To display "What is your name?" as a prompt and await user input:
You can’t perform that action at this time.
0 commit comments