Changeset

12608:946a11f794e2

util.human.units: Specify enum argument to format()
author Kim Alvefur <zash@zash.se>
date Mon, 05 Jul 2021 13:18:14 +0200
parents 12607:8943ae10f7e8
children 12609:a8eb838fc6cf
files teal-src/util/human/units.d.tl
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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