mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Update the demo.odin to use nil instead of os.ERROR_NONE
This commit is contained in:
@@ -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