doc: tidy

This commit is contained in:
cha0s 2024-02-14 23:14:49 -06:00
parent 382371af37
commit 78a2ffb1c2

View File

@ -258,7 +258,7 @@ exports.hookSpecificationVisitor = (fn) => (
.map(({name}) => (name ? `invoke${name}` : 'invoke'));
const [returns] = tags
.filter(({tag}) => 'returns' === tag)
.map(({description, name, type}) => ({description: `${name} ${description}`, type}));
.map(({description, name, type}) => ({description: `${name} ${description}`.trim(), type}));
fn({
hook: key.value,
description: description.trim(),