Update the demo.odin to use nil instead of os.ERROR_NONE

This commit is contained in:
gingerBill
2024-08-04 12:47:49 +01:00
parent bdbbbf5c95
commit 649b25fba6

View File

@@ -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)