Skip to content

Clarify charCodeAt and codePointAt documentation#63471

Open
MukundaKatta wants to merge 1 commit into
microsoft:mainfrom
MukundaKatta:codex/fix-string-codepoint-docs
Open

Clarify charCodeAt and codePointAt documentation#63471
MukundaKatta wants to merge 1 commit into
microsoft:mainfrom
MukundaKatta:codex/fix-string-codepoint-docs

Conversation

@MukundaKatta
Copy link
Copy Markdown

Fixes #49561

This updates the library JSDoc for String methods to use more precise terminology:

  • charCodeAt now describes returning a UTF-16 code unit value rather than an ambiguous Unicode value.
  • codePointAt now explicitly says Unicode code point while preserving the existing UTF-16/surrogate-pair details for indexing behavior.

Validation:

  • Checked the word diff; this is a docs-only declaration comment change.
  • Confirmed the edited lib files preserve their existing CRLF line endings.

Copilot AI review requested due to automatic review settings May 11, 2026 22:00
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog May 11, 2026
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label May 11, 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.

@jakebailey
Copy link
Copy Markdown
Member

How did you determine that this is a bug worth fixing, given what our contributing doc says at the top?

What tool did you use to send this PR?

@MukundaKatta
Copy link
Copy Markdown
Author

I used VS Code with GitHub Copilot assistance for drafting/editing, but I reviewed and prepared the final change manually before submitting the PR.

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.

Docs of charCodeAt and codePointAt are flipped

4 participants