Forráskód Böngészése

drop unnecessary defer

Justin Snyder 1 éve
szülő
commit
1a6bb59125
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      core/strings/builder.odin

+ 1 - 1
core/strings/builder.odin

@@ -296,7 +296,7 @@ Returns:
 */
 to_cstring :: proc(b: ^Builder) -> (res: cstring) {
 	append(&b.buf, 0)
-	defer pop(&b.buf)
+	pop(&b.buf)
 	return cstring(raw_data(b.buf))
 }
 /*