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.
2 parents 3112800 + f58a002 commit d21db7fCopy full SHA for d21db7f
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