diff options
| author | Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> | 2023-05-08 23:12:56 -0700 |
|---|---|---|
| committer | Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> | 2023-05-08 23:13:27 -0700 |
| commit | eff4833840608b93d83a7140d152b80524dfd394 (patch) | |
| tree | b993127215a69172e2d6b8bcd2f963dff6e5e47c | |
| parent | b052da10657814860402d00ae9434864b7836864 (diff) | |
remove misleading example
| -rw-r--r-- | examples/demo/demo.odin | 6 |
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 } |