diff options
author | Artur Mkrtchyan <mkrtchyan.artur@gmail.com> | 2014-12-21 13:08:21 +0100 |
---|---|---|
committer | Artur Mkrtchyan <mkrtchyan.artur@gmail.com> | 2014-12-21 13:08:21 +0100 |
commit | 6dca0e7ae41140765cb3b0c1513cfa897294efe5 (patch) | |
tree | c35af4a4b1cc64681c7bf4c89d2b350954ee2a8a /scala.html.markdown | |
parent | fe856e7117c49aace8417f7fc1ccedaff6fcca8c (diff) |
Fixed Person class' constructor signature
Diffstat (limited to 'scala.html.markdown')
-rw-r--r-- | scala.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 5a478f2a..544abd5b 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -476,7 +476,7 @@ sSquared.reduce (_+_) // The filter function takes a predicate (a function from A -> Boolean) and // selects all elements which satisfy the predicate List(1, 2, 3) filter (_ > 2) // List(3) -case class Person(name:String, phoneNumber:String) +case class Person(name:String, age:Int) List( Person(name = "Dom", age = 23), Person(name = "Bob", age = 30) |