mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +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 {
|
||||
f, err := os.open("my_file.txt")
|
||||
if err != os.ERROR_NONE {
|
||||
if err != nil {
|
||||
// handle error
|
||||
}
|
||||
defer os.close(f)
|
||||
|
||||
Reference in New Issue
Block a user