Skip to content

Commit cf7406d

Browse files
authored
docs: update comments
Signed-off-by: Athan <[email protected]>
1 parent be53ab0 commit cf7406d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/tsdoc-declarations-doctest/lib/add_package_to_scope.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ function addPackageToScope( scope, pkg, sourceText ) {
7171
if ( namespaceMatch ) {
7272
scope[ namespaceMatch[1] ] = pkg;
7373
}
74+
// Note: intentional fall-through to handle multiple patterns for objects...
7475
}
75-
// For all non-function types (including objects), also check const pattern (e.g., `declare const PI: number;` or `declare const obj: {...};`). Note: intentional fall-through to handle both patterns for objects...
76+
// For all non-function types (including objects), also check const pattern (e.g., `declare const PI: number;` or `declare const obj: {...};`)...
7677
match = sourceText.match( RE_DECLARE_CONST );
7778
if ( match ) {
7879
scope[ match[1] ] = pkg;

0 commit comments

Comments
 (0)