Skip to content

Commit b3bb8ae

Browse files
authored
Merge pull request #14000 from mattmccutchen/lib-string-replace
lib: Fix documentation of String.replace first parameter.
2 parents c547f52 + ecfa0de commit b3bb8ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es5.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ interface String {
341341

342342
/**
343343
* Replaces text in a string, using a regular expression or search string.
344-
* @param searchValue A string that represents the regular expression.
344+
* @param searchValue A string to search for.
345345
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
346346
*/
347347
replace(searchValue: string, replaceValue: string): string;
348348

349349
/**
350350
* Replaces text in a string, using a regular expression or search string.
351-
* @param searchValue A string that represents the regular expression.
351+
* @param searchValue A string to search for.
352352
* @param replacer A function that returns the replacement text.
353353
*/
354354
replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;

0 commit comments

Comments
 (0)