Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Rename string-slicing extension methods (dotnet/corefx#27328)
Browse files Browse the repository at this point in the history
* Rename string-slicing extension methods

As part of

https://github.com/dotnet/corefx/issues/26894

the api folks have approved renaming AsROSpan and AsROMemory
on string instances to AsSpan and AsMemory (as the "readonly"
is obvious given the read-only nature of the input.)

This puts the renaming in effect. Basically a big search-replace
commit.

* Fix OpenSSL build break

* I see this is going to be a treadmill

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
  • Loading branch information
atsushikan authored and jkotas committed Feb 23, 2018
1 parent 88abf49 commit a79398e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mscorlib/shared/System/Text/ValueStringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void AppendSlow(string s)
Grow(s.Length);
}

s.AsReadOnlySpan().CopyTo(_chars.Slice(pos));
s.AsSpan().CopyTo(_chars.Slice(pos));
_pos += s.Length;
}

Expand Down

0 comments on commit a79398e

Please sign in to comment.