mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
remove misleading example
This commit is contained in:
@@ -2145,12 +2145,6 @@ or_return_operator :: proc() {
|
||||
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
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user