Skip to content

Commit 413d53e

Browse files
author
Dave Wu
authored
Update 4-pattern-matching.md
1 parent dd8abc4 commit 413d53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4-pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ iex> {a, b, c} = [:hello, "world", "!"]
6363
** (MatchError) no match of right hand side value: [:hello, "world", "!"]
6464
```
6565

66-
利用“匹配”的这个概念,我们可以匹配特定值或者在匹配成功时。
66+
利用“匹配”的这个概念,我们可以匹配特定值或者在匹配成功时,为某些变量赋值
6767

6868
下面例子中先写好了匹配的左端,它要求右端必须是个元组,且第一个元素是原子```:ok```
6969
```elixir

0 commit comments

Comments
 (0)