mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
transmute(type)x; Minor code clean up
This commit is contained in:
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user