Skip to content

Commit 856925c

Browse files
committed
added readonly modifier
1 parent fcac967 commit 856925c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public ref partial struct ValueStringBuilder
1010
/// <param name="oldValue">The character to replace.</param>
1111
/// <param name="newValue">The character to replace <paramref name="oldValue"/> with.</param>
1212
[MethodImpl(MethodImplOptions.AggressiveInlining)]
13-
public void Replace(char oldValue, char newValue) => Replace(oldValue, newValue, 0, Length);
13+
public readonly void Replace(char oldValue, char newValue) => Replace(oldValue, newValue, 0, Length);
1414

1515
/// <summary>
1616
/// Replaces all instances of one character with another in this builder.
@@ -20,7 +20,7 @@ public ref partial struct ValueStringBuilder
2020
/// <param name="startIndex">The index to start in this builder.</param>
2121
/// <param name="count">The number of characters to read in this builder.</param>
2222
[MethodImpl(MethodImplOptions.AggressiveInlining)]
23-
public void Replace(char oldValue, char newValue, int startIndex, int count)
23+
public readonly void Replace(char oldValue, char newValue, int startIndex, int count)
2424
{
2525
if (startIndex < 0)
2626
{

0 commit comments

Comments
 (0)