Skip to content

Commit a112531

Browse files
authored
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.
1 parent d481bef commit a112531

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ object TermsAndTypes extends ScalaTutorialSection {
181181
* = Exercise =
182182
*
183183
* Here are some more methods of standard types. Can you guess what they do?
184+
* If you get stuck, try evaluating each statement in turn in a scala REPL to see what the result is.
184185
*/
185186
def moreMethods(res0: String, res1: Boolean, res2: String): Unit = {
186187
16.toHexString shouldBe res0

0 commit comments

Comments
 (0)