From eff4833840608b93d83a7140d152b80524dfd394 Mon Sep 17 00:00:00 2001 From: Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> Date: Mon, 8 May 2023 23:12:56 -0700 Subject: [PATCH] remove misleading example --- examples/demo/demo.odin | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 457aa786a..2ea69a774 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -2145,12 +2145,6 @@ or_return_operator :: proc() { return -345 * z, zerr } - // If the other return values need to be set depending on what the end value is, - // the 'defer if' idiom is can be used - defer if err != nil { - n = -1 - } - n = 123 return }