Skip to content

Commit

Permalink
Fix random typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tfiedlerdejanze committed May 7, 2024
1 parent b10df9c commit 1488876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/elixir/pages/getting-started/module-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule MyTest do
end
```
In the example above, `ExUnit` stores the value of `async: true` in a module attribute to change how the module is compiled. Tags also work as annotations and they can be supplied multiple times, thanks to Elixir's ability to [accumulate attribute](`Module.register_attribute/3`). Then yuou can use tags to setup and filter tests, such as avoiding executing Unix specific tests while running your test suite on Windows.
In the example above, `ExUnit` stores the value of `async: true` in a module attribute to change how the module is compiled. Tags also work as annotations and they can be supplied multiple times, thanks to Elixir's ability to [accumulate attribute](`Module.register_attribute/3`). Then you can use tags to setup and filter tests, such as avoiding executing Unix specific tests while running your test suite on Windows.
To fully understand how ExUnit works, we'd need macros, so we will revisit this pattern in the Meta-programming guide and learn how to use module attributes as storage for custom annotations.
Expand Down
4 changes: 2 additions & 2 deletions lib/elixir/test/elixir/kernel/errors_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ defmodule Kernel.ErrorsTest do
assert_compile_error(
["nofile:2:7: ", "implementation not provided for predefined def foo/0"],
~c"""
defmodule Kernel.ErrorsTest.FunctionWithoutDefition do
defmodule Kernel.ErrorsTest.FunctionWithoutDefinition do
def foo
end
"""
Expand Down Expand Up @@ -176,7 +176,7 @@ defmodule Kernel.ErrorsTest do
assert_compile_error(
["nofile:2:12: ", "implementation not provided for predefined defmacro foo/1"],
~c"""
defmodule Kernel.ErrorsTest.GuardWithoutDefition do
defmodule Kernel.ErrorsTest.GuardWithoutDefinition do
defguard foo(bar)
end
"""
Expand Down

0 comments on commit 1488876

Please sign in to comment.