From c14cb638a728e8412c7063c5709327fc3d5ceae7 Mon Sep 17 00:00:00 2001 From: Michael McCune Date: Thu, 8 Dec 2016 22:17:46 -0500 Subject: [PATCH] add missing println statements to case-classes.md The last example in the case-classes.md file shows what the example output will be but the program snippet does not show any println statements with the usage of the newly introduced case class function. This change adds the println calls that use the new function and match the output. --- tutorials/tour/case-classes.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutorials/tour/case-classes.md b/tutorials/tour/case-classes.md index d58842e432..19cc38e6f8 100644 --- a/tutorials/tour/case-classes.md +++ b/tutorials/tour/case-classes.md @@ -120,6 +120,11 @@ val someVoiceRecording = VoiceRecording("Tom", "voicerecording.org/id/123") val specialEmail = Email("jane@mail.com", "Drinks tonight?", "I'm free after 5!") val specialSms = SMS("55555", "I'm here! Where are you?") +println(showNotificationSpecial(someSms, SPECIAL_EMAIL, SPECIAL_NUMBER)) +println(showNotificationSpecial(someVoiceRecording, SPECIAL_EMAIL, SPECIAL_NUMBER)) +println(showNotificationSpecial(specialEmail, SPECIAL_EMAIL, SPECIAL_NUMBER)) +println(showNotificationSpecial(specialSms, SPECIAL_EMAIL, SPECIAL_NUMBER)) + // prints: // You got an SMS from 12345! Message: Are you there? // you received a Voice Recording from Tom! Click the link to hear it: voicerecording.org/id/123