# HG changeset patch # User Kim Alvefur # Date 1625483894 -7200 # Node ID 946a11f794e2b250cfd8c871d0b3d4af901de75c # Parent 8943ae10f7e8b11b37df6ace2769f576f3ed0cd9 util.human.units: Specify enum argument to format() diff -r 8943ae10f7e8 -r 946a11f794e2 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