diff options
author | Marcel Ribeiro Dantas <ribeirodantasdm@gmail.com> | 2022-06-27 00:28:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 00:28:16 +0200 |
commit | 5d133e847846b4c8d436f7a567674c2e1df35a13 (patch) | |
tree | 7ebc7704f02ceef195a8896a80a06ed81cc12585 /scala.html.markdown | |
parent | 27f7f03401ff747a61a912fdf73549b1788b13e1 (diff) | |
parent | 8f28c8021b8ce3cb791861ad19c41e12228d8bcd (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'scala.html.markdown')
-rw-r--r-- | scala.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 08fd37e4..d2d45dc9 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -481,7 +481,7 @@ class SaintBernard extends Dog { def bite = false } -scala> b +scala> val b = new SaintBernard res0: SaintBernard = SaintBernard@3e57cd70 scala> b.breed res1: String = Saint Bernard @@ -599,7 +599,7 @@ List("Dom", "Bob", "Natalia") foreach println s.map(sq) -val sSquared = s. map(sq) +val sSquared = s.map(sq) sSquared.filter(_ < 10) @@ -717,7 +717,7 @@ import scala.collection.immutable.{Map => _, Set => _, _} // Java classes can also be imported. Scala syntax can be used import java.swing.{JFrame, JWindow} -// Your programs entry point is defined in a scala file using an object, with a +// Your program's entry point is defined in a scala file using an object, with a // single method, main: object Application { def main(args: Array[String]): Unit = { |