Browse Source

drop unnecessary defer

Justin Snyder 1 year ago
parent
commit
1a6bb59125
1 changed files with 1 additions and 1 deletions
  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) {
 to_cstring :: proc(b: ^Builder) -> (res: cstring) {
 	append(&b.buf, 0)
 	append(&b.buf, 0)
-	defer pop(&b.buf)
+	pop(&b.buf)
 	return cstring(raw_data(b.buf))
 	return cstring(raw_data(b.buf))
 }
 }
 /*
 /*