Browse Source

drop unnecessary defer

Justin Snyder 1 năm trước cách đây
mục cha
commit
1a6bb59125
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))
 }
 /*