Skip to content

Commit 484ff42

Browse files
authored
Change String -> string as other h2 headings use lower case
1 parent 183ebbf commit 484ff42

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
@@ -138,7 +138,7 @@ println(showNotification(someVoiceRecording)) // prints You received a Voice Re
138138

139139
The function `showNotification` takes as a parameter the abstract type `Notification` and matches on the type of `Notification` (i.e. it figures out whether it's an `Email`, `SMS`, or `VoiceRecording`). In the `case Email(sender, title, _)` the fields `sender` and `title` are used in the return value but the `body` field is ignored with `_`.
140140

141-
## Matching on String
141+
## Matching on string
142142

143143
The `s`-interpolator allows embedding variables in strings and is also useful for pattern matching.
144144

0 commit comments

Comments
 (0)