Skip to content

Commit 66a998f

Browse files
ErikPohl444gkepka
andauthored
Update _tour/pattern-matching.md
Thanks for catching this. I learned a bit more about successful markdown links. I accept the edit. Co-authored-by: Gabriel Kępka <[email protected]>
1 parent 6222097 commit 66a998f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ case class VoiceRecording(contactName: String, link: String) extends Notificatio
9292
{% endtab %}
9393
{% endtabs %}
9494

95-
`Notification` is a sealed trait which has three concrete Notification types implemented with case classes `Email`, `SMS`, and `VoiceRecording`. (A [sealed trait](#Sealed-types) can be extended only in the same file as its declaration.) Now we can do pattern matching on these case classes:
95+
`Notification` is a sealed trait which has three concrete Notification types implemented with case classes `Email`, `SMS`, and `VoiceRecording`. (A [sealed trait](/tour/pattern-matching.html#sealed-types) can be extended only in the same file as its declaration.) Now we can do pattern matching on these case classes:
9696

9797
{% tabs pattern-matching-4 class=tabs-scala-version %}
9898
{% tab 'Scala 2' for=pattern-matching-4 %}

0 commit comments

Comments
 (0)