We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c6a58b commit 95d7232Copy full SHA for 95d7232
1 file changed
src/main/scala/s4j/scala/chapter18/Customer.scala
@@ -21,5 +21,7 @@ class Customer(val name: String, val address: String) {
21
}
22
23
object Customer {
24
- def unapply(customer: Customer): Option[(String, String)] = Some((customer.name, customer.address))
+ def unapply(customer: Customer): Option[(String, String)] = {
25
+ Some((customer.name, customer.address))
26
+ }
27
0 commit comments