We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6c4f8 commit a5908a7Copy full SHA for a5908a7
src/LinkDotNet.StringBuilder/ValueStringBuilder.Enumerator.cs
@@ -33,16 +33,6 @@ public readonly ref char Current
33
/// <summary>Advances the enumerator to the next element of the span.</summary>
34
/// <returns>True if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the span.</returns>
35
[MethodImpl(MethodImplOptions.AggressiveInlining)]
36
- public bool MoveNext()
37
- {
38
- var nextIndex = index + 1;
39
- if (nextIndex < span.Length)
40
41
- index = nextIndex;
42
- return true;
43
- }
44
-
45
- return false;
46
+ public bool MoveNext() => ++index < span.Length;
47
}
48
0 commit comments