Browse Source

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

gingerBill 1 year ago
parent
commit
649b25fba6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/demo/demo.odin

+ 1 - 1
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)