Skip to content

Commit

Permalink
Merge pull request #43 from hellosmithy/minor-errata
Browse files Browse the repository at this point in the history
Minor errata
  • Loading branch information
wintermeyer authored Feb 19, 2024
2 parents e2e1159 + 2daa08d commit 732878f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In this example, `for` iterates over each number in the list `[1, 2, 3, 4, 5]`,
squares each number (`num * num`), and collects the results into a new list.
This list is then assigned to the variable `squared_numbers`.

You can also filter elements in a `for` comprehension using `when`:
You can also filter elements in a `for` comprehension using a guard clause:

[source,elixir]
----
Expand Down
3 changes: 2 additions & 1 deletion modules/ROOT/pages/elixir/recursion.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ I used to say that https://www.google.com and
https://stackoverflow.com were your friends. They still are but ChatGPT and Github Copilot have made our lives as programmers to much easier. Ask them. No embarrassment!

During this book, we will work with recursions. So you'll get a better feeling for
it.
it.

0 comments on commit 732878f

Please sign in to comment.