From b577bae802d9772ce07c28535ed7795e1aa03561 Mon Sep 17 00:00:00 2001 From: mukunda katta Date: Mon, 11 May 2026 15:00:12 -0700 Subject: [PATCH] Clarify String charCodeAt and codePointAt docs --- src/lib/es2015.core.d.ts | 2 +- src/lib/es5.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/es2015.core.d.ts b/src/lib/es2015.core.d.ts index 8f8162b0da0b2..5bde1b737ffff 100644 --- a/src/lib/es2015.core.d.ts +++ b/src/lib/es2015.core.d.ts @@ -383,7 +383,7 @@ interface RegExpConstructor { interface String { /** - * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point + * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the Unicode code point * value of the UTF-16 encoded code point starting at the string element at position pos in * the String resulting from converting this object to a String. * If there is no element at that position, the result is undefined. diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index ced21a6d72af1..edc17734f2113 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -400,8 +400,8 @@ interface String { charAt(pos: number): string; /** - * Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds. - * @param index The zero-based index of the desired character. + * Returns the UTF-16 code unit value at the specified location, or NaN if the index is out of bounds. + * @param index The zero-based index of the desired UTF-16 code unit. */ charCodeAt(index: number): number;