ソースを参照

remove misleading example

Elusive Porpoise 2 年 前
コミット
eff4833840
1 ファイル変更0 行追加6 行削除
  1. 0 6
      examples/demo/demo.odin

+ 0 - 6
examples/demo/demo.odin

@@ -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
 	}