Skip to content

Commit dd6af21

Browse files
bowdjosevalim
authored andcommitted
Make it a bit clearer by providing dirs (elixir-lang#897)
1 parent 71812cc commit dd6af21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

getting-started/comprehensions.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Comprehensions discard all elements for which the filter expression returns `fal
4848
Comprehensions generally provide a much more concise representation than using the equivalent functions from the `Enum` and `Stream` modules. Furthermore, comprehensions also allow multiple generators and filters to be given. Here is an example that receives a list of directories and gets the size of each file in those directories:
4949

5050
```elixir
51+
dirs = ['/home/mikey', '/home/james']
5152
for dir <- dirs,
5253
file <- File.ls!(dir),
5354
path = Path.join(dir, file),

0 commit comments

Comments
 (0)