Skip to content

fix(lib): add missing article in Set#size JSDoc#63495

Open
algojogacor wants to merge 1 commit into
microsoft:mainfrom
algojogacor:fix/set-size-grammar-typo
Open

fix(lib): add missing article in Set#size JSDoc#63495
algojogacor wants to merge 1 commit into
microsoft:mainfrom
algojogacor:fix/set-size-grammar-typo

Conversation

@algojogacor
Copy link
Copy Markdown

This is an independent contribution made in good faith by an individual contributor.

Summary

Fixes a minor grammar issue in lib.es2015.collection.d.ts where the JSDoc comment for Set#size is missing the definite article, producing ungrammatical text.

Root Cause

The @returns annotation for Set#size reads:

the number of (unique) elements in Set.

This is missing "the" before "Set", making it grammatically incorrect.

Fix

Added the missing definite article:

the number of (unique) elements in the Set.

Testing

This is a comment-only change to a type definition file. No runtime behavior is affected. The change aligns with the existing style used in other @returns tags within the same interface.

Closes #63480

The comment for Set#size is missing the definite article before Set, producing ungrammatical text.

Closes microsoft#63480
Copilot AI review requested due to automatic review settings May 19, 2026 17:14
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog May 19, 2026
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label May 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

Set#size has grammar typo in lib.es2015.collection.d.ts

3 participants