From 3d76c37cbedc620fdc9f2bfa7da8fd0b036f06b1 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 13 Mar 2020 01:14:07 +0330 Subject: [PATCH] More clear comment for String.prototype.match() (#36301) * More clear comment for String.prototype.match() * Removed trailing spaces --- src/lib/es2015.symbol.wellknown.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/es2015.symbol.wellknown.d.ts b/src/lib/es2015.symbol.wellknown.d.ts index efaef1a63ce..5418cb4d5ea 100644 --- a/src/lib/es2015.symbol.wellknown.d.ts +++ b/src/lib/es2015.symbol.wellknown.d.ts @@ -207,7 +207,8 @@ interface RegExpConstructor { interface String { /** - * Matches a string an object that supports being matched against, and returns an array containing the results of that search. + * Matches a string or an object that supports being matched against, and returns an array + * containing the results of that search, or null if no matches are found. * @param matcher An object that supports being matched against. */ match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; @@ -295,4 +296,4 @@ interface SetConstructor { } interface ArrayBufferConstructor { readonly [Symbol.species]: ArrayBufferConstructor; -} \ No newline at end of file +}