Skip to content

Commit f382aff

Browse files
Fix typos in v1.19 (#14826)
1 parent 3619098 commit f382aff

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

lib/elixir/lib/calendar/datetime.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ defmodule DateTime do
17631763
17641764
Although the first example shows a difference of 2 hours when
17651765
comparing the wall clocks of the given datetime with the returned one,
1766-
due to the "spring forward" time jump, the actual ellapsed time is
1766+
due to the "spring forward" time jump, the actual elapsed time is
17671767
still exactly of 1 hour.
17681768
17691769
In case you don't want these changes to happen automatically or you

lib/elixir/lib/file.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ defmodule File do
317317
directories of `path`
318318
* `:enospc` - there is no space left on the device
319319
* `:enotdir` - a component of `path` is not a directory
320-
* `:eperm` - missed required permisions
320+
* `:eperm` - missed required permissions
321321
322322
## Examples
323323

lib/elixir/lib/module.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ defmodule Module do
565565
written to disk, and therefore raising does not effectively halt compilation
566566
and may leave unused artifacts on disk. If you must raise, use `@after_compile`
567567
or other callback. Given modules have already been compiled, functions in
568-
ths module, such as `get_attribute/2`, which expect modules to not have been
568+
this module, such as `get_attribute/2`, which expect modules to not have been
569569
yet compiled, do not work on `@after_verify` callback.
570570
571571
Accepts a module or a `{module, function_name}` tuple. The function

lib/elixir/pages/anti-patterns/macro-anti-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ end
320320

321321
In the previous example, even though Elixir does not know which modules the function `example/0` was invoked on, it knows the modules `OtherModule.Foo` and `OtherModule.Bar` are referred outside of a function and therefore they become compile-time dependencies. If any of them change, Elixir will recompile `MyModule` itself.
322322

323-
However, you should not programatically generate the module names themselves, as that would make it impossible for Elixir to track them. More precisely, do not do this:
323+
However, you should not programmatically generate the module names themselves, as that would make it impossible for Elixir to track them. More precisely, do not do this:
324324

325325
```elixir
326326
defmodule MyModule do
@@ -348,7 +348,7 @@ end
348348

349349
#### Refactoring
350350

351-
To address this anti-pattern, you should avoid defining module names programatically. For example, if you need to dispatch to multiple modules, do so by using full module names.
351+
To address this anti-pattern, you should avoid defining module names programmatically. For example, if you need to dispatch to multiple modules, do so by using full module names.
352352

353353
Instead of:
354354

lib/elixir/pages/mix-and-otp/agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,4 @@ end
207207

208208
When a long action is performed on the server, all other requests to that particular server will wait until the action is done, which may cause some clients to timeout.
209209

210-
Some APIs, such as GenServers, make a clearer distiction between client and server, and we will explore them in future chapters. Next let's talk about naming things, applications, and supervisors.
210+
Some APIs, such as GenServers, make a clearer distinction between client and server, and we will explore them in future chapters. Next let's talk about naming things, applications, and supervisors.

lib/elixir/pages/mix-and-otp/supervisor-and-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ end
181181

182182
Now run `mix test` again and our app should boot but we should see one failure. When we changed the `KV` module, we broke the boilerplate test case which tested the `KV.hello/0` function. You can simply remove that test case and we are back to a green suite.
183183

184-
We wrote very little code but we did something incredibly powerful. We now have a function, `KV.start/2` that is invoked whenever your application starts. This gives us the perfect place to start our key-value registry. The `Application` module also allows us to define a `stop/1` callback and other funtionality. You can check the `Application` and `Supervisor` modules for extensive documentation on their uses.
184+
We wrote very little code but we did something incredibly powerful. We now have a function, `KV.start/2` that is invoked whenever your application starts. This gives us the perfect place to start our key-value registry. The `Application` module also allows us to define a `stop/1` callback and other functionality. You can check the `Application` and `Supervisor` modules for extensive documentation on their uses.
185185

186186
Let's finally start our registry.
187187

lib/elixir/pages/references/patterns-and-guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ iex> _
8383
** (CompileError) iex:3: invalid use of _
8484
```
8585

86-
A pinned value represents the value itself and not its – even if syntatically equal – pattern. The right hand side is compared to be equal to the pinned value:
86+
A pinned value represents the value itself and not its – even if syntactically equal – pattern. The right hand side is compared to be equal to the pinned value:
8787

8888
```iex
8989
iex> x = %{}

0 commit comments

Comments
 (0)