diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-15 18:44:50 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-15 18:44:50 +0100 |
| commit | 1a7f508dd94671b8575ee9decabf5ec9a52777c2 (patch) | |
| tree | e4a5ba953a01a285b30f4a0170bf13709d8a48d5 /examples | |
| parent | dc8cfcf92aa65ccec88293249ee8214c81e83902 (diff) | |
Improve comment
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 2948f7682..d896e4eb5 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -2102,8 +2102,8 @@ or_return_operator :: proc() { return; } - // If a non-bare 'return' is required, then a normal 'if' can be used as it is - // a lot clearer to read + // If using a non-bare 'return' statement is required, setting the return values + // using the normal idiom is a better choice and clearer to read. if z, zerr := caller_2(); zerr != nil { return -345 * z, zerr; } |