Skip to content

Commit c949116

Browse files
authored
Merge pull request #14876 from JoshuaKGoldberg/patch-1
symbolDisplay comment fix: "experts" vs "exports"
2 parents 02e487a + 523ced7 commit c949116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/symbolDisplay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ namespace ts.SymbolDisplay {
419419
if (!documentation) {
420420
documentation = symbol.getDocumentationComment();
421421
if (documentation.length === 0 && symbol.flags & SymbolFlags.Property) {
422-
// For some special property access expressions like `experts.foo = foo` or `module.exports.foo = foo`
422+
// For some special property access expressions like `exports.foo = foo` or `module.exports.foo = foo`
423423
// there documentation comments might be attached to the right hand side symbol of their declarations.
424424
// The pattern of such special property access is that the parent symbol is the symbol of the file.
425425
if (symbol.parent && forEach(symbol.parent.declarations, declaration => declaration.kind === SyntaxKind.SourceFile)) {

0 commit comments

Comments
 (0)