Skip to content

Commit 95d7232

Browse files
committed
tweak
1 parent 5c6a58b commit 95d7232

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/scala/s4j/scala/chapter18/Customer.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ class Customer(val name: String, val address: String) {
2121
}
2222

2323
object Customer {
24-
def unapply(customer: Customer): Option[(String, String)] = Some((customer.name, customer.address))
24+
def unapply(customer: Customer): Option[(String, String)] = {
25+
Some((customer.name, customer.address))
26+
}
2527
}

0 commit comments

Comments
 (0)