aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin6
1 files changed, 0 insertions, 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
}