mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Replace 0 with os.ERROR_NONE in demo.odin
This commit is contained in:
@@ -352,7 +352,7 @@ control_flow :: proc() {
|
|||||||
|
|
||||||
if false {
|
if false {
|
||||||
f, err := os.open("my_file.txt")
|
f, err := os.open("my_file.txt")
|
||||||
if err != 0 {
|
if err != os.ERROR_NONE {
|
||||||
// handle error
|
// handle error
|
||||||
}
|
}
|
||||||
defer os.close(f)
|
defer os.close(f)
|
||||||
|
|||||||
Reference in New Issue
Block a user