@@ -105,7 +105,7 @@ defmodule Kernel do
105105 defmacro left -- right
106106
107107 @ doc """
108- Boolean or. Arguments needs to necessarily be booleans.
108+ Boolean or. Arguments must be booleans.
109109 Allowed in guard clauses.
110110
111111 ## Examples
@@ -117,7 +117,7 @@ defmodule Kernel do
117117 defmacro left or right
118118
119119 @ doc """
120- Boolean and. Arguments needs to necessarily be booleans.
120+ Boolean and. Arguments must be booleans.
121121 Allowed in guard clauses.
122122
123123 ## Examples
@@ -129,7 +129,7 @@ defmodule Kernel do
129129 defmacro left and right
130130
131131 @ doc """
132- Boolean xor. Arguments needs to necessarily be booleans.
132+ Boolean xor. Arguments must be booleans.
133133 Allowed in guard clauses.
134134
135135 ## Examples
@@ -141,7 +141,7 @@ defmodule Kernel do
141141 defmacro left xor right
142142
143143 @ doc """
144- Boolean not. Argument needs to necessarily be a boolean.
144+ Boolean not. Argument must be a boolean.
145145 Allowed in guard clauses.
146146
147147 ## Examples
@@ -153,7 +153,7 @@ defmodule Kernel do
153153 defmacro not arg
154154
155155 @ doc """
156- It receives any argument and returns true if it is false
156+ Receives any argument and returns true if it is false
157157 or nil. Returns false otherwise. Not allowed in guard
158158 clauses.
159159
@@ -168,8 +168,8 @@ defmodule Kernel do
168168 defmacro ! arg
169169
170170 @ doc """
171- Return true if left is less than right.
172- As Erlang, Elixir can compare any term. Allowed in guard clauses.
171+ Returns true if left is less than right.
172+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
173173
174174 ## Examples
175175
@@ -180,8 +180,8 @@ defmodule Kernel do
180180 defmacro left < right
181181
182182 @ doc """
183- Return true if left is more than right.
184- As Erlang, Elixir can compare any term. Allowed in guard clauses.
183+ Returns true if left is more than right.
184+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
185185
186186 ## Examples
187187
@@ -192,8 +192,8 @@ defmodule Kernel do
192192 defmacro left > right
193193
194194 @ doc """
195- Return true if left is less than or equal to right.
196- As Erlang, Elixir can compare any term. Allowed in guard clauses.
195+ Returns true if left is less than or equal to right.
196+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
197197
198198 ## Examples
199199
@@ -204,8 +204,8 @@ defmodule Kernel do
204204 defmacro left <= right
205205
206206 @ doc """
207- Return true if left is more than or equal to right.
208- As Erlang, Elixir can compare any term. Allowed in guard clauses.
207+ Returns true if left is more than or equal to right.
208+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
209209
210210 ## Examples
211211
@@ -221,7 +221,7 @@ defmodule Kernel do
221221 This operator considers 1 and 1.0 to be equal. For strict
222222 comparison, use `===` instead.
223223
224- As Erlang, Elixir can compare any term. Allowed in guard clauses.
224+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
225225
226226 ## Examples
227227
@@ -240,7 +240,7 @@ defmodule Kernel do
240240 This operator considers 1 and 1.0 to be equal. For strict
241241 comparison, use `!==` instead.
242242
243- As Erlang, Elixir can compare any term. Allowed in guard clauses.
243+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
244244
245245 ## Examples
246246
@@ -254,7 +254,7 @@ defmodule Kernel do
254254
255255 @ doc """
256256 Returns true if the two items are strictly equal.
257- As Erlang, Elixir can compare any term. Allowed in guard clauses.
257+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
258258
259259 ## Examples
260260
@@ -269,7 +269,7 @@ defmodule Kernel do
269269
270270 @ doc """
271271 Returns true if the two items are strictly not equal.
272- As Erlang, Elixir can compare any term. Allowed in guard clauses.
272+ Like Erlang, Elixir can compare any term. Allowed in guard clauses.
273273
274274 ## Examples
275275
@@ -411,7 +411,7 @@ defmodule Kernel do
411411 end
412412
413413 @ doc """
414- As binary_to_list/1, but returns a list of integers corresponding to the bytes
414+ Like binary_to_list/1, but returns a list of integers corresponding to the bytes
415415 from position `start` to position `stop` in `binary`. Positions in the binary
416416 are numbered starting from 1.
417417 """
@@ -1092,7 +1092,7 @@ defmodule Kernel do
10921092 end
10931093
10941094 @ doc """
1095- Returns a binary data which is the result of encoding the given term
1095+ Returns a binary which is the result of encoding the given term
10961096 according to the Erlang external term format.
10971097
10981098 This can be used for a variety of purposes, for example, writing a term
@@ -1517,7 +1517,7 @@ defmodule Kernel do
15171517 end
15181518
15191519 @doc """
1520- Check if the given structure is an exception.
1520+ Checks if the given structure is an exception.
15211521
15221522 ## Examples
15231523
@@ -1542,7 +1542,7 @@ defmodule Kernel do
15421542 end
15431543
15441544 @ doc """
1545- Check if the given structure is a record. It is basically
1545+ Checks if the given structure is a record. It is basically
15461546 a convenient macro that checks the structure is a tuple and
15471547 the first element matches the given kind.
15481548
@@ -1569,7 +1569,7 @@ defmodule Kernel do
15691569 end
15701570
15711571 @ doc """
1572- Check if the given argument is a record.
1572+ Checks if the given argument is a record.
15731573 """
15741574 defmacro is_record ( thing ) do
15751575 case __CALLER__ . in_guard? do
@@ -1586,7 +1586,7 @@ defmodule Kernel do
15861586 end
15871587
15881588 @ doc """
1589- Check if the given argument is a regex.
1589+ Checks if the given argument is a regex.
15901590 """
15911591 defmacro is_regex ( thing ) do
15921592 quote do
@@ -1595,7 +1595,7 @@ defmodule Kernel do
15951595 end
15961596
15971597 @doc """
1598- Check if the given argument is a range.
1598+ Checks if the given argument is a range.
15991599 "" "
16001600 defmacro is_range(thing) do
16011601 quote do
@@ -1674,7 +1674,7 @@ defmodule Kernel do
16741674 end
16751675
16761676 If the protocol is invoked with a data type that is not an Atom,
1677- nor Tuple, nor List, nor BitString, Elixir will now dispatch to
1677+ a Tuple, a List, or a BitString, Elixir will now dispatch to
16781678 Any. That said, the default behavior could be implemented as:
16791679
16801680 defimpl Blank , for: Any do
@@ -1701,8 +1701,8 @@ defmodule Kernel do
17011701 In the example above, we have implemented `blank? ` for
17021702 `RedBlack . Tree ` that simply delegates to `RedBlack . empty? ` passing
17031703 the tree as argument . This implementation doesn 't need to be defined
1704- inside the `RedBlack` tree or inside the record, but anywhere in
1705- the code.
1704+ inside the `RedBlack` tree or inside the record; it can be defined
1705+ anywhere in the code.
17061706
17071707 Finally, since records are simply tuples, one can add a default
17081708 protocol implementation to any record by defining a default
@@ -1752,8 +1752,8 @@ defmodule Kernel do
17521752
17531753 ## Examples
17541754
1755- For example, in other to write tests using the ExUnit framework,
1756- a developers should use the `ExUnit.Case` module:
1755+ For example, in order to write tests using the ExUnit framework,
1756+ a developer should use the `ExUnit.Case` module:
17571757
17581758 defmodule AssertionTest do
17591759 use ExUnit.Case, async: true
@@ -1811,9 +1811,9 @@ defmodule Kernel do
18111811 inspect(:foo)
18121812 #=> ":foo"
18131813
1814- Notice the inspect protocol does not necessarily return a valid Elixir
1815- terms representation. In such cases, the inspected result must start
1816- with `#`. For example, inspecting a function will return:
1814+ Note that the inspect protocol does not necessarily return a valid
1815+ representation of an Elixir term . In such cases, the inspected result must
1816+ start with `#`. For example, inspecting a function will return:
18171817
18181818 inspect &1 + &2
18191819 #=> #Function<...>
@@ -2386,11 +2386,10 @@ defmodule Kernel do
23862386 end
23872387
23882388 @ doc """
2389- Allows you to destructure two lists, assigning each
2390- term in the right to the left. Differently from pattern
2391- matching via `=`, if the sizes of the left and right
2392- lists don't match,, structuring simply stops instead
2393- of raising an error.
2389+ Allows you to destructure two lists, assigning each term in the right to the
2390+ matching term in the left. Unlike pattern matching via `=`, if the sizes of
2391+ the left and right lists don't match, destructuring simply stops instead of
2392+ raising an error.
23942393
23952394 ## Examples
23962395
@@ -2400,7 +2399,7 @@ defmodule Kernel do
24002399 z #=> 3
24012400
24022401 Notice in the example above, even though the right
2403- size has more entries than the left, structuring works
2402+ size has more entries than the left, destructuring works
24042403 fine. If the right size is smaller, the remaining items
24052404 are simply assigned to nil:
24062405
0 commit comments