Skip to content

Commit 310d2cb

Browse files
authored
Update TermsAndTypes.scala
Please tag this contribution with label: hacktoberfest-accepted
1 parent 3f9ec24 commit 310d2cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/scala/scalatutorial/sections/TermsAndTypes.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ object TermsAndTypes extends ScalaTutorialSection {
195195
* Here are some more methods of standard types. Can you guess what they do? If you get stuck, try
196196
* evaluating each statement in turn in a scala REPL to see what the result is.
197197
*/
198-
def moreMethods(res0: String, res1: Boolean, res2: String): Unit = {
198+
def moreMethods(res0: String, res1: Boolean, res2: Boolean, res3: String, res4: String): Unit = {
199199
16.toHexString shouldBe res0
200-
(0 to 10).contains(10) shouldBe true
201-
(0 until 10).contains(10) shouldBe res1
202-
"foo".drop(1) shouldBe "oo"
203-
"bar".take(2) shouldBe res2
200+
(0 to 10).contains(10) shouldBe res1
201+
(0 until 10).contains(10) shouldBe res2
202+
"foo".drop(1) shouldBe res3
203+
"bar".take(2) shouldBe res4
204204
}
205205

206206
}

0 commit comments

Comments
 (0)