Software /
code /
prosody
Comparison
teal-src/util/human/units.d.tl @ 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 |
parent | 11432:113f3912c7cb |
comparison
equal
deleted
inserted
replaced
12607:8943ae10f7e8 | 12608:946a11f794e2 |
---|---|
1 local lib = record | 1 local lib = record |
2 enum logbase | |
3 "b" -- 1024 | |
4 end | |
2 adjust : function (number, string) : number, string | 5 adjust : function (number, string) : number, string |
3 format : function (number, string, string) : string | 6 format : function (number, string, logbase) : string |
4 end | 7 end |
5 return lib | 8 return lib |