From 185b679953985197b6c087487c01e269c749e5c4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 5 Jul 2021 13:18:14 +0200 Subject: util.human.units: Specify enum argument to format() --- teal-src/util/human/units.d.tl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'teal-src') diff --git a/teal-src/util/human/units.d.tl b/teal-src/util/human/units.d.tl index f6568d90..3db17c3a 100644 --- a/teal-src/util/human/units.d.tl +++ b/teal-src/util/human/units.d.tl @@ -1,5 +1,8 @@ local lib = record + enum logbase + "b" -- 1024 + end adjust : function (number, string) : number, string - format : function (number, string, string) : string + format : function (number, string, logbase) : string end return lib -- cgit v1.2.3