Skip to content

Commit f5b65f5

Browse files
Fix typos in Meta-programming anti-patterns page (#14668)
1 parent 0705e3f commit f5b65f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

0 commit comments

Comments
 (0)