This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/mscorlib/shared/System/Text Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1687,10 +1687,10 @@ public bool Equals(StringBuilder sb)
1687
1687
/// <summary>
1688
1688
/// Determines if the contents of this builder are equal to the contents of ReadOnlySpan<char>.
1689
1689
/// </summary>
1690
- /// <param name="value ">The ReadOnlySpan{char}.</param>
1691
- public bool Equals ( ReadOnlySpan < char > value )
1690
+ /// <param name="span ">The ReadOnlySpan{char}.</param>
1691
+ public bool Equals ( ReadOnlySpan < char > span )
1692
1692
{
1693
- if ( value . Length != Length )
1693
+ if ( span . Length != Length )
1694
1694
return false ;
1695
1695
1696
1696
StringBuilder sbChunk = this ;
@@ -1703,7 +1703,7 @@ public bool Equals(ReadOnlySpan<char> value)
1703
1703
1704
1704
ReadOnlySpan < char > chunk = new ReadOnlySpan < char > ( sbChunk . m_ChunkChars , 0 , chunk_length ) ;
1705
1705
1706
- if ( ! chunk . EqualsOrdinal ( value . Slice ( value . Length - offset , chunk_length ) ) )
1706
+ if ( ! chunk . EqualsOrdinal ( span . Slice ( span . Length - offset , chunk_length ) ) )
1707
1707
return false ;
1708
1708
1709
1709
sbChunk = sbChunk . m_ChunkPrevious ;
You can’t perform that action at this time.
0 commit comments