Skip to content

Commit fbb4939

Browse files
authored
Fix docs for two overloads of String.prototype.replace
1 parent 1ad569f commit fbb4939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

221221
/**
222-
* Replaces first match with string or all matches with RegExp.
222+
* Replaces text in a string, using an object that supports replacement within a string.
223223
* @param searchValue A string or RegExp search value.
224224
* @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

228228
/**
229229
* Replaces text in a string, using an object that supports replacement within a string.
230-
* @param searchValue A object can search for and replace matches within a string.
230+
* @param searchValue A object that can search for and replace matches within a string.
231231
* @param replacer A function that returns the replacement text.
232232
*/
233233
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;

0 commit comments

Comments
 (0)