diff --git a/labs/example-lab.md b/labs/example-lab.md index 040911cfddde79c03095a0ccd1155d185255f35c..8b7e1f8279dd9817605f61e4d7c8c11de6564ebb 100644 --- a/labs/example-lab.md +++ b/labs/example-lab.md @@ -217,8 +217,7 @@ scala> max(List(1,3,2)) res1: Int = 3 ``` -You can enter a multiline expression in the REPL by using `Alt+Enter` -(`Option+Enter` on macOS) instead of `Enter`: +You can enter a multiline expression in the REPL by using `Alt+Enter` instead of `Enter`: ```scala scala> if 1 == 1 then @@ -228,6 +227,10 @@ scala> if 1 == 1 then val res0: String = a ``` +(on macOS, first go to `Terminal -> Preference -> Profiles -> Keyboard` and then +select `Use Option as Meta key`, then `Option+Enter` will work for multiline +expressions.) + In order to exit the Scala REPL and go back to sbt, type `Ctrl+D`. ### The worksheet mode