From 65d11ca8cab787db37a218881c4585863fd8904c Mon Sep 17 00:00:00 2001 From: Cole Mackenzie Date: Mon, 2 Dec 2019 11:55:27 -0700 Subject: [PATCH] Update tuples.md I corrected the output of `Person(Al)` to `Person(David)` --- _overviews/scala-book/tuples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala-book/tuples.md b/_overviews/scala-book/tuples.md index 928ddd4a13..5db90f3ab3 100644 --- a/_overviews/scala-book/tuples.md +++ b/_overviews/scala-book/tuples.md @@ -74,7 +74,7 @@ Another cool approach is to access them like this: scala> val(x, y, z) = (3, "Three", new Person("David")) x: Int = 3 y: String = Three -z: Person = Person(Al) +z: Person = Person(David) ``` Technically this approach involves a form of pattern-matching, and it’s a great way to assign tuple elements to variables.