diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-05 13:18:14 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-05 13:18:14 +0200 |
commit | 185b679953985197b6c087487c01e269c749e5c4 (patch) | |
tree | f1449d56f7f7f73924ec1e98d88ddcf193d8552b /teal-src | |
parent | a8332d2427bf918336f3b0353e28c13280ddd49d (diff) | |
download | prosody-185b679953985197b6c087487c01e269c749e5c4.tar.gz prosody-185b679953985197b6c087487c01e269c749e5c4.zip |
util.human.units: Specify enum argument to format()
Diffstat (limited to 'teal-src')
-rw-r--r-- | teal-src/util/human/units.d.tl | 5 |
1 files changed, 4 insertions, 1 deletions
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 |