diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-04 12:47:49 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-04 12:47:49 +0100 |
| commit | 649b25fba6d04dd4e99d0e8bc6b7f2543d09ad7e (patch) | |
| tree | 9233559156b07b48097a0bc6d3afaac916f4eaef /examples | |
| parent | bdbbbf5c95b30bdb02f20399ffee1f3a19b0cf0c (diff) | |
Update the `demo.odin` to use `nil` instead of `os.ERROR_NONE`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index d31711bad..d66d1ceb0 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -359,7 +359,7 @@ control_flow :: proc() { if false { f, err := os.open("my_file.txt") - if err != os.ERROR_NONE { + if err != nil { // handle error } defer os.close(f) |