docs: fix return type for hilbish.aliases.list

readline-upstream
sammyette 2023-01-07 11:52:05 -04:00
parent 887260cd8a
commit 07a7a75b46
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ func (a *aliasModule) Loader(rtm *rt.Runtime) *rt.Table {
func _hlalias() {}
// #interface aliases
// list() -> aliases (table)
// list() -> table<string, string>
// Get a table of all aliases, with string keys as the alias and the value as the command.
// @returns table<string, string>
// --- @returns table<string, string>
func (a *aliasModule) luaList(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
aliasesList := rt.NewTable()
for k, v := range a.All() {