Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Sep 1, 2023
1 parent 098d665 commit 8efb189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/pages/anti-patterns/design-anti-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ iex> AlternativeInteger.parse("13", discard_rest: false)

#### Refactoring

To refactor this anti-pattern, as shown next, it's better to add in the library a specific function for each return type (for example, `parse_no_rest/1`), no longer delegating this to an options parameter.
To refactor this anti-pattern, as shown next, add a specific function for each return type (for example, `parse_no_rest/1`), no longer delegating this to options passed as arguments.

```elixir
defmodule AlternativeInteger do
Expand Down

0 comments on commit 8efb189

Please sign in to comment.