remove misleading example
This commit is contained in:
1 parent
b052da1065
commit
eff4833840
1 file changed
-6
@@ -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