Skip to content

Commit 95357ff

Browse files
authored
Fix a few typos (#11342)
1 parent 6127de2 commit 95357ff

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/elixir/lib/code/fragment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ defmodule Code.Fragment do
442442
`do` would always be a keyword.
443443
444444
The `position` contains both the `line` and `column`, both starting
445-
with the index of 1. The column must preceed the surrounding expression.
445+
with the index of 1. The column must precede the surrounding expression.
446446
For example, the expression `foo`, will return something for the columns
447447
1, 2, and 3, but not 4:
448448

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ defprotocol Enumerable do
8181
The caller is then responsible of managing the continuation and the
8282
caller must always call the continuation, eventually halting or continuing
8383
until the end. `Enum.zip/2` uses suspension, so it can be used to test
84-
whether your implementation handles suspension corectly. You can also use
84+
whether your implementation handles suspension correctly. You can also use
8585
`Stream.zip/2` with `Enum.take_while/2` to test the combination of
8686
`:suspend` with `:halt`.
8787
"""

lib/elixir/lib/module/types/of.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ defmodule Module.Types.Of do
327327
%{context | warnings: [{__MODULE__, warning, location} | context.warnings]}
328328
end
329329

330-
## Warning formating
330+
## Warning formatting
331331

332332
def format_warning({:undefined_module, module, fun, arity}) do
333333
[

lib/elixir/test/elixir/protocol_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ defmodule ProtocolTest do
201201
assert Multi.test(:a) == :a
202202
end
203203

204-
test "defimpl without :for option when ouside a module" do
204+
test "defimpl without :for option when outside a module" do
205205
msg = "defimpl/3 expects a :for option when declared outside a module"
206206

207207
assert_raise ArgumentError, msg, fn ->

lib/ex_unit/lib/ex_unit/runner.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ defmodule ExUnit.Runner do
134134
# sigquit next.
135135
#
136136
# Otherwise, whenever a module has finished executing, update
137-
# the runnig modules and attempt to spawn new ones.
137+
# the running modules and attempt to spawn new ones.
138138
defp wait_until_available(config, running) do
139139
receive do
140140
{ref, pid, :sigquit} ->

0 commit comments

Comments
 (0)