summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAhson Khan <ahkha@microsoft.com>2018-04-12 22:40:43 -0700
committerJan Kotas <jkotas@microsoft.com>2018-04-13 05:21:22 -0700
commitcae5bb17b1abb96758c17aa53ca3d6988c3179ef (patch)
tree191e82ccdadd930fd04af748b1c8569cb0f2839e /src
parentc68b86f5f92d5f8e78f2ac4494b8f31d487d27cc (diff)
downloadcoreclr-cae5bb17b1abb96758c17aa53ca3d6988c3179ef.tar.gz
coreclr-cae5bb17b1abb96758c17aa53ca3d6988c3179ef.tar.bz2
coreclr-cae5bb17b1abb96758c17aa53ca3d6988c3179ef.zip
Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/shared/System/IO/PathInternal.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/IO/PathInternal.cs b/src/mscorlib/shared/System/IO/PathInternal.cs
index 00a709213f..00cb12e920 100644
--- a/src/mscorlib/shared/System/IO/PathInternal.cs
+++ b/src/mscorlib/shared/System/IO/PathInternal.cs
@@ -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++)