Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078)
authorAhson Khan <ahkha@microsoft.com>
Fri, 13 Apr 2018 05:40:43 +0000 (22:40 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 13 Apr 2018 12:21:22 +0000 (05:21 -0700)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/IO/PathInternal.cs

index 00a7092..00cb12e 100644 (file)
@@ -134,7 +134,7 @@ namespace System.IO
             // at the end.
             if (skip > 0)
             {
-                sb.Append(path.AsSpan().Slice(0, skip));
+                sb.Append(path.AsSpan(0, skip));
             }
 
             for (int i = skip; i < path.Length; i++)