Replace 0 with os.ERROR_NONE in demo.odin

This commit is contained in:
Damian Tarnawski
2023-06-11 23:41:26 +02:00
committed by GitHub
parent 4c17e2e97e
commit c3933cead4
+1 -1
View File
@@ -352,7 +352,7 @@ control_flow :: proc() {
if false {
f, err := os.open("my_file.txt")
if err != 0 {
if err != os.ERROR_NONE {
// handle error
}
defer os.close(f)