aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorJustin Snyder <ifoundthebeef@gmail.com>2024-06-19 18:25:42 -0600
committerGitHub <noreply@github.com>2024-06-19 18:25:42 -0600
commit1a6bb5912559588a7823a363e279686b146f33fb (patch)
treef7ac6b6ecf109475d9e523d9897556b2fba58f1a /core/strings
parent271782d2f43316c3b691946b9a5e8cf5f311ac36 (diff)
drop unnecessary defer
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/builder.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/builder.odin b/core/strings/builder.odin
index 195eab56f..3c5bc5793 100644
--- a/core/strings/builder.odin
+++ b/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))
}
/*