Skip to content

Commit ff1a886

Browse files
committed
Changed from Integer.odd? to Integer.is_odd in "Generators and filters" example
1 parent b0edf8c commit ff1a886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/18.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Alternatively, filters can be used to filter some particular elements out. For e
4040

4141
```iex
4242
iex> require Integer
43-
iex> for n <- 1..4, Integer.odd?(n), do: n * n
43+
iex> for n <- 1..4, Integer.is_odd(n), do: n * n
4444
[1, 9]
4545
```
4646

0 commit comments

Comments
 (0)