Skip to content

Commit

Permalink
@lancehalvorsen feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Jun 12, 2024
1 parent b8775e1 commit 220cbeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/control-flow_macros.cheatmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Elixir's Kernel documentation refers to these structures as "macros for control-flow".
We often refer to them as "blocks" in our changelog, which is a much worse name, to be sure.

You're likely here just to see what Styler does, in which case, please [click here to skip](skip) following manifesto on our philosophy regarding the usage of these macros.
You're likely here just to see what Styler does, in which case, please [click here to skip](skip) the following manifesto on our philosophy regarding the usage of these macros.

## Which Control Flow Macro Should I Use?

The number of "blocks" in Elixir means there are a large number of ways to write semantically equivalent code, often leaving developers [in the dark as to which structure they should use.](https://www.reddit.com/r/elixir/comments/1ctbtcl/i_am_completely_lost_when_it_comes_to_which/)
The number of "blocks" in Elixir means there are many ways to write semantically equivalent code, often leaving developers [in the dark as to which structure they should use.](https://www.reddit.com/r/elixir/comments/1ctbtcl/i_am_completely_lost_when_it_comes_to_which/)

We believe readability is enhanced by using the simplest api possible, whether we're talking about internal module function calls or standard-library macros.

Expand Down
2 changes: 1 addition & 1 deletion docs/mix_configs.cheatmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Mix Config files have their config stanzas sorted. Similar to the sorting of ali
A file is considered a config file if

1. its path matches `config/.*\.exs` or `rel/overlays/.*\.exs`
2. the file imports Mix.Config (`import Mix.Config`)
2. the file has `import Config`

Once a file is detected as a mix config, its `config/2,3` stanzas are grouped and ordered like so:

Expand Down

0 comments on commit 220cbeb

Please sign in to comment.