diff --git a/core/strings/builder.odin b/core/strings/builder.odin index 32c96ebbd..195eab56f 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(&p.buf) + defer pop(&b.buf) return cstring(raw_data(b.buf)) } /*