Skip to content

Commit d68cf1c

Browse files
committed
Fix case-cond-and-if document
The previous code block says: > ** (RuntimeError) undefined function: if/1
1 parent 64a637b commit d68cf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: getting-started/case-cond-and-if.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ iex> is_number(if true) do
257257
** (RuntimeError) undefined function: if/1
258258
```
259259

260-
Which leads to an undefined function error as Elixir attempts to invoke `is_number/2`. Adding explicit parentheses is enough to resolve the ambiguity:
260+
Which leads to an undefined function error as Elixir attempts to invoke `if/1`. Adding explicit parentheses is enough to resolve the ambiguity:
261261

262262
```iex
263263
iex> is_number(if true do

0 commit comments

Comments
 (0)