aboutsummaryrefslogtreecommitdiff
path: root/core/fmt.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-30 14:52:42 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-30 14:52:42 +0100
commit62a72f0163b2f35ca11cd8f4bbb4c7de2c66fca4 (patch)
treee334be658d8ed4018e8ae8bb37334dbc1834f14c /core/fmt.odin
parent655931f0ea282f8dbaa769a213311a774e4f84c6 (diff)
`transmute(type)x`; Minor code clean up
Diffstat (limited to 'core/fmt.odin')
-rw-r--r--core/fmt.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fmt.odin b/core/fmt.odin
index 2dd87b28f..7a5e08021 100644
--- a/core/fmt.odin
+++ b/core/fmt.odin
@@ -149,8 +149,7 @@ aprintf :: proc(fmt: string, args: ...any) -> string {
}
-// bprint* procedures return a string that was allocated with the current context
-// They must be freed accordingly
+// bprint* procedures return a string using a buffer from an array
bprint :: proc(buf: []u8, args: ...any) -> string {
sb := StringBuffer(buf[..0..len(buf)]);
return sbprint(&sb, ...args);