diff --git a/lib/elixir/pages/getting-started/module-attributes.md b/lib/elixir/pages/getting-started/module-attributes.md index eafacc4cc2a..c8f32c60668 100644 --- a/lib/elixir/pages/getting-started/module-attributes.md +++ b/lib/elixir/pages/getting-started/module-attributes.md @@ -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. diff --git a/lib/elixir/test/elixir/kernel/errors_test.exs b/lib/elixir/test/elixir/kernel/errors_test.exs index 046f9fc421b..5e526bb730a 100644 --- a/lib/elixir/test/elixir/kernel/errors_test.exs +++ b/lib/elixir/test/elixir/kernel/errors_test.exs @@ -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 """ @@ -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 """