projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c68b86f
)
Collapse leftover AsSpan().Slice(...) into AsSpan(...) (#29078)
author
Ahson Khan
<ahkha@microsoft.com>
Fri, 13 Apr 2018 05:40:43 +0000
(22:40 -0700)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/src/mscorlib/shared/System/IO/PathInternal.cs
b/src/mscorlib/shared/System/IO/PathInternal.cs
index
00a7092
..
00cb12e
100644
(file)
--- 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++)