diff --git a/packages/dox/build/visitors.js b/packages/dox/build/visitors.js index 47bcc67..fcc4ab2 100644 --- a/packages/dox/build/visitors.js +++ b/packages/dox/build/visitors.js @@ -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(),