Browse Source

Merge pull request #2586 from thetarnav/patch-1

Replace `0` with `os.ERROR_NONE` in `demo.odin`
gingerBill 2 years ago
parent
commit
e036155bdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/demo/demo.odin

+ 1 - 1
examples/demo/demo.odin

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