diff options
author | Yuichi Motoyama <yomichi@tsg.jp> | 2014-12-22 14:43:50 +0900 |
---|---|---|
committer | Yuichi Motoyama <yomichi@tsg.jp> | 2014-12-22 14:43:50 +0900 |
commit | 0aeef251154a4ccdc6438e8382a1ce452ea92735 (patch) | |
tree | 76cfc042790eb839ed15d15bf313c572b897a3d9 | |
parent | 09ab1c3aee929fd9336cecdff6ff2c5d3cd4f06a (diff) | |
parent | 3b1a125a79528bade19fa797da3ce3885c9ef892 (diff) |
Merge remote-tracking branch 'upstream/master' into julia-jp
-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) |