Update the demo.odin to use nil instead of os.ERROR_NONE
This commit is contained in:
1 parent
bdbbbf5c95
commit
649b25fba6
1 file changed
+1
-1
@@ -359,7 +359,7 @@ control_flow :: proc() {
|
|||||||
|
|
||||||
if false {
|
if false {
|
||||||
f, err := os.open("my_file.txt")
|
f, err := os.open("my_file.txt")
|
||||||
if err != os.ERROR_NONE {
|
if err != nil {
|
||||||
// handle error
|
// handle error
|
||||||
}
|
}
|
||||||
defer os.close(f)
|
defer os.close(f)
|
||||||
|
|||||||
Reference in new issue
Block a user