mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.human.units: Specify enum argument to format()
This commit is contained in:
parent
a8332d2427
commit
185b679953
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue