Fix typo in `string.Join` (#50467)
authorxtqqczze <45661989+xtqqczze@users.noreply.github.com>
Wed, 31 Mar 2021 11:02:11 +0000 (12:02 +0100)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 11:02:11 +0000 (07:02 -0400)
Follow-up #44032.

src/libraries/System.Private.CoreLib/src/System/String.Manipulation.cs

index 690c26a..efb7f5d 100644 (file)
@@ -578,9 +578,9 @@ namespace System
 
         public static string Join(string? separator, IEnumerable<string?> values)
         {
-            if (values is List<string?> valuesIList)
+            if (values is List<string?> valuesList)
             {
-                return JoinCore(separator.AsSpan(), CollectionsMarshal.AsSpan(valuesIList));
+                return JoinCore(separator.AsSpan(), CollectionsMarshal.AsSpan(valuesList));
             }
 
             if (values is string?[] valuesArray)