mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
remove misleading example
This commit is contained in:
@@ -2145,12 +2145,6 @@ or_return_operator :: proc() {
|
|||||||
return -345 * z, zerr
|
return -345 * z, zerr
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the other return values need to be set depending on what the end value is,
|
|
||||||
// the 'defer if' idiom is can be used
|
|
||||||
defer if err != nil {
|
|
||||||
n = -1
|
|
||||||
}
|
|
||||||
|
|
||||||
n = 123
|
n = 123
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user