Skip to content

Commit a3bfe9d

Browse files
committed
Improve docs and code coments
1 parent 35cceec commit a3bfe9d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/elixir/lib/io.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ defmodule IO do
152152
153153
The `device` is iterated as specified by the `line_or_chars` argument:
154154
155-
* if `line_or_chars` is an integer, it represents a number of characters. The device
156-
is iterated by that number of characters.
155+
* if `line_or_chars` is an integer, it represents the number of characters
156+
according to the device encoding (either latin1 or utf8). The device is
157+
iterated by that number of characters. Use `binread/2` if you desire to
158+
read bytes.
157159
158160
* if `line_or_chars` is `:line`, the device is iterated line by line.
159161
CRLF newlines ("\r\n") are automatically normalized to "\n".

lib/mix/lib/mix/project_stack.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule Mix.ProjectStack do
1010
@timeout :infinity
1111

1212
# compile.lock is not the best name, but the name is completely
13-
# opaque and we keep it for backwards compatibility (just in case).
13+
# opaque and we keep it for backwards compatibility.
1414
@manifest "compile.lock"
1515

1616
@typep file :: binary

0 commit comments

Comments
 (0)