Skip to content

Commit 00302d7

Browse files
authored
Merge pull request #2665 from mhghaffari/patch-1
Update pattern-matching.md
2 parents ed49c80 + 50c97d5 commit 00302d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: _tour/pattern-matching.md

+4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ def showNotification(notification: Notification): String = {
255255
s"You got an email from $sender with title: $title"
256256
case SMS(number, message) =>
257257
s"You got an SMS from $number! Message: $message"
258+
case VoiceRecording(name, link) =>
259+
s"You received a Voice Recording from $name! Click the link to hear it: $link"
258260
}
259261
}
260262
```
@@ -267,6 +269,8 @@ def showNotification(notification: Notification): String =
267269
s"You got an email from $sender with title: $title"
268270
case SMS(number, message) =>
269271
s"You got an SMS from $number! Message: $message"
272+
case VoiceRecording(name, link) =>
273+
s"You received a Voice Recording from $name! Click the link to hear it: $link"
270274
```
271275
{% endtab %}
272276
{% endtabs %}

0 commit comments

Comments
 (0)