Skip to content

Commit 98f04e2

Browse files
authored
IntelliSense doc string.replace typo (#41385)
* Fix IntelliSense doc string.replace typo * Update IntelliSense doc string.replace * Update string.replace doc text * Revert "Fix IntelliSense doc string.replace typo" This reverts commit 4220ec8. * Reworded string.replace doc text * Fix doc string.replace text
1 parent 59e3a80 commit 98f04e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/es2015.symbol.wellknown.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ interface String {
219219
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
220220

221221
/**
222-
* Replaces text in a string, using an object that supports replacement within a string.
223-
* @param searchValue A object can search for and replace matches within a string.
224-
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
222+
* Replaces first match with string or all matches with RegExp.
223+
* @param searchValue A string or RegExp search value.
224+
* @param replaceValue A string containing the text to replace for match.
225225
*/
226226
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
227227

0 commit comments

Comments
 (0)