diff --git a/docs/docs/reference/other-new-features/safe-initialization.md b/docs/docs/reference/other-new-features/safe-initialization.md index 1a24c4e57632..327dd23efd49 100644 --- a/docs/docs/reference/other-new-features/safe-initialization.md +++ b/docs/docs/reference/other-new-features/safe-initialization.md @@ -16,7 +16,7 @@ Given the following code snippet: ``` Scala abstract class AbstractFile { def name: String - val extension: String = Path.extension(name) + val extension: String = name.substring(4) } class RemoteFile(url: String) extends AbstractFile {