We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323df5e commit c217cefCopy full SHA for c217cef
_overviews/scala3-book/packaging-imports.md
@@ -199,7 +199,7 @@ package foo
199
import scala.util.Random
200
201
class ClassA:
202
- def printRandom:
+ def printRandom(): Unit =
203
val r = new Random // use the imported class
204
// more code here...
205
```
@@ -211,7 +211,7 @@ package foo
211
212
213
import scala.util.Random // inside ClassA
214
- def printRandom {
215
val r = new Random
216
217
0 commit comments