aboutsummaryrefslogtreecommitdiff
path: root/core/text/table
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-21 01:17:05 +0100
committergingerBill <bill@gingerbill.org>2023-06-21 01:17:05 +0100
commit9b54b99bf696a65bc5c8358b2a5ace1f6dc4fdcc (patch)
tree1e20f43aa33209caf9015d9b63384633eed455a4 /core/text/table
parent67ca9166d36375fd42725c16ca3933d4c91ebfee (diff)
Use positional and named arguments within the core library
Diffstat (limited to 'core/text/table')
-rw-r--r--core/text/table/table.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/text/table/table.odin b/core/text/table/table.odin
index 2b60df98f..8d96cb26f 100644
--- a/core/text/table/table.odin
+++ b/core/text/table/table.odin
@@ -114,7 +114,7 @@ set_cell_alignment :: proc(tbl: ^Table, row, col: int, alignment: Cell_Alignment
format :: proc(tbl: ^Table, _fmt: string, args: ..any, loc := #caller_location) -> string {
context.allocator = tbl.format_allocator
- return fmt.aprintf(fmt = _fmt, args = args)
+ return fmt.aprintf(_fmt, ..args)
}
header :: proc(tbl: ^Table, values: ..any, loc := #caller_location) {