From: Ahson Khan Date: Fri, 13 Apr 2018 05:40:43 +0000 (-0700) Subject: Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078) X-Git-Tag: accepted/tizen/unified/20190422.045933~2342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cae5bb17b1abb96758c17aa53ca3d6988c3179ef;p=platform%2Fupstream%2Fcoreclr.git Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078) Signed-off-by: dotnet-bot-corefx-mirror --- diff --git a/src/mscorlib/shared/System/IO/PathInternal.cs b/src/mscorlib/shared/System/IO/PathInternal.cs index 00a7092..00cb12e 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++)