util.human.units: Specify enum argument to format()
authorKim Alvefur <zash@zash.se>
Mon, 05 Jul 2021 13:18:14 +0200
changeset 12612 946a11f794e2
parent 12611 8943ae10f7e8
child 12613 a8eb838fc6cf
util.human.units: Specify enum argument to format()
teal-src/util/human/units.d.tl
--- a/teal-src/util/human/units.d.tl	Wed Mar 24 20:23:38 2021 +0100
+++ b/teal-src/util/human/units.d.tl	Mon Jul 05 13:18:14 2021 +0200
@@ -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