From cae5bb17b1abb96758c17aa53ca3d6988c3179ef Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Thu, 12 Apr 2018 22:40:43 -0700 Subject: [PATCH] Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078) Signed-off-by: dotnet-bot-corefx-mirror --- src/mscorlib/shared/System/IO/PathInternal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.7.4