guard against missing docstring

This commit is contained in:
XeroOl 2024-08-17 15:17:10 -05:00
parent 58c79a727e
commit eb06909d22

View File

@ -34,7 +34,7 @@ user code. Fennel-ls doesn't support user-code formatting as of now."
(.. "(" (tostring binding) ")")
(.. "(" (tostring binding) " " (table.concat metadata.fnl/arglist " ") ")")))
"\n"
metadata.fnl/docstring))
(or metadata.fnl/docstring "")))
(λ fn? [symbol]
(if (sym? symbol)