diff --git a/docs/_docs/reference/experimental/main-annotation.md b/docs/_docs/reference/experimental/main-annotation.md index d2172d97a284..8a09edca003d 100644 --- a/docs/_docs/reference/experimental/main-annotation.md +++ b/docs/_docs/reference/experimental/main-annotation.md @@ -89,9 +89,9 @@ import scala.util.CommandLineParser.FromString[T] def run(program: () => Int): Unit = println("executing program") - try { - val result = program() - println("result: " + result) - println("executed program") + val result = program() + println("result: " + result) + println("executed program") + end myMain ```