diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 43ff5837a9500..ced21a6d72af1 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. - * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. + * 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. */ charCodeAt(index: number): number; diff --git a/tests/baselines/reference/completionsStringMethods.baseline b/tests/baselines/reference/completionsStringMethods.baseline index e7e9cf31bfbdc..a5a65ab502251 100644 --- a/tests/baselines/reference/completionsStringMethods.baseline +++ b/tests/baselines/reference/completionsStringMethods.baseline @@ -209,7 +209,7 @@ ], "documentation": [ { - "text": "Returns the Unicode value of the character at the specified location.", + "text": "Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds.", "kind": "text" } ], @@ -226,7 +226,7 @@ "kind": "space" }, { - "text": "The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.", + "text": "The zero-based index of the desired character.", "kind": "text" } ]