Skip to content

Commit 2445617

Browse files
committed
Small grammar correction and added inline hint
1 parent b095781 commit 2445617

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public ValueStringBuilder(ReadOnlySpan<char> initialText)
113113
public readonly ReadOnlySpan<char> AsSpan() => buffer[..bufferPosition];
114114

115115
/// <summary>
116-
/// Get a pinnable reference to the represented string from this builder.
116+
/// Gets a pinnable reference to the represented string from this builder.
117117
/// The content after <see cref="Length"/> is not guaranteed to be null terminated.
118118
/// </summary>
119119
/// <returns>The pointer to the first instance of the string represented by this builder.</returns>
@@ -278,6 +278,7 @@ public readonly int LastIndexOf(ReadOnlySpan<char> word, int startIndex)
278278
/// </summary>
279279
/// <param name="span">The character span to compare with the current instance.</param>
280280
/// <returns><c>true</c> if the characters are equal to this instance, otherwise <c>false</c>.</returns>
281+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
281282
public readonly bool Equals(ReadOnlySpan<char> span) => span.SequenceEqual(AsSpan());
282283

283284
/// <summary>

0 commit comments

Comments
 (0)