Explorar o código

drop unnecessary defer

Justin Snyder hai 1 ano
pai
achega
1a6bb59125
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))
 }
 /*