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 3112800 commit f58a002Copy full SHA for f58a002
docs/docs/reference/other-new-features/safe-initialization.md
@@ -16,7 +16,7 @@ Given the following code snippet:
16
``` Scala
17
abstract class AbstractFile {
18
def name: String
19
- val extension: String = Path.extension(name)
+ val extension: String = name.substring(4)
20
}
21
22
class RemoteFile(url: String) extends AbstractFile {
0 commit comments