Skip to content
Browse files
Suggested more guidance in last section
I found myself trying to workout why `16.toHexString` wasn't "10", only to discover when I evaluated all the statements that that answer was fine, it was the second one which was `false` rather than `true` as `until` isn't inclusive.
  • Loading branch information
sauntimo committed Jun 30, 2019
1 parent d481bef commit a112531b4138d891c42e8057dbcece53d37c8e37
Showing 1 changed file with 1 addition and 0 deletions.
@@ -181,6 +181,7 @@ object TermsAndTypes extends ScalaTutorialSection {
* = Exercise =
* Here are some more methods of standard types. Can you guess what they do?
* If you get stuck, try evaluating each statement in turn in a scala REPL to see what the result is.
def moreMethods(res0: String, res1: Boolean, res2: String): Unit = {
16.toHexString shouldBe res0

0 comments on commit a112531

Please sign in to comment.