Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3aa4e4

Browse files
authored
Update pattern-matching.markdown (elixir-lang#1734)
Add printout for last part of tuple example
1 parent 5ed6d47 commit c3aa4e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

getting-started/pattern-matching.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ iex> a
4848
:hello
4949
iex> b
5050
"world"
51+
iex> c
52+
42
5153
```
5254

5355
A pattern match error will occur if the sides can't be matched, for example if the tuples have different sizes:

0 commit comments

Comments
 (0)