Skip to content

Commit 4d3b598

Browse files
author
Ye Chen
committed
translate missed part
1 parent 46a4231 commit 4d3b598

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_zh-cn/tour/pattern-matching.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ case class VoiceRecording(contactName: String, link: String) extends Notificatio
6060
6161
6262
```
63-
`Notification` is an abstract super class which has three concrete Notification types implemented with case classes `Email`, `SMS`, and `VoiceRecording`. Now we can do pattern matching on these case classes:
63+
64+
`Notification` 是一个虚基类,它有三个具体的子类`Email`, `SMS``VoiceRecording`,我们可以在这些案例类(Case Class)上像这样使用模式匹配:
6465

6566
```
6667
def showNotification(notification: Notification): String = {

0 commit comments

Comments
 (0)