diff --git a/_overviews/scala3-book/methods-main-methods.md b/_overviews/scala3-book/methods-main-methods.md index e30da56dcd..07a1f225c3 100644 --- a/_overviews/scala3-book/methods-main-methods.md +++ b/_overviews/scala3-book/methods-main-methods.md @@ -49,8 +49,7 @@ For example, given this `@main` method that takes an `Int`, a `String`, and a va val sb = StringBuilder(s"Happy $age$suffix birthday, $name") for other <- others do sb.append(" and ").append(other) - sb.toString - println(sb) + println(sb.toString) ``` When you compile that code, it creates a main program named `happyBirthday` that’s called like this: