From 8e8f31309eda07d10a2de68f0d8a88f5385db07d Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Mon, 30 May 2022 16:19:33 +0200 Subject: [PATCH] remove useless try --- docs/_docs/reference/experimental/main-annotation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ```