diff options
author | Ahson Khan <ahkha@microsoft.com> | 2018-04-12 22:40:43 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-04-13 05:21:22 -0700 |
commit | cae5bb17b1abb96758c17aa53ca3d6988c3179ef (patch) | |
tree | 191e82ccdadd930fd04af748b1c8569cb0f2839e /src | |
parent | c68b86f5f92d5f8e78f2ac4494b8f31d487d27cc (diff) | |
download | coreclr-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.cs | 2 |
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++) |