Skip to content

Commit 90049be

Browse files
committed
refactor: Reorder methods
1 parent 9177d8d commit 90049be

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.Append.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ public unsafe void Append(char* value, int length)
7575
}
7676

7777
/// <summary>
78-
/// Adds the default new line separator.
78+
/// Appends a slice of memory.
7979
/// </summary>
80-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
81-
public void AppendLine()
80+
/// <param name="memory">The memory to add.</param>
81+
public void Append(ReadOnlyMemory<char> memory)
8282
{
83-
Append(Environment.NewLine);
83+
Append(memory.Span);
8484
}
8585

8686
/// <summary>
87-
/// Appends a slice of memory.
87+
/// Adds the default new line separator.
8888
/// </summary>
89-
/// <param name="memory">The memory to add.</param>
90-
public void Append(ReadOnlyMemory<char> memory)
89+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
90+
public void AppendLine()
9191
{
92-
Append(memory.Span);
92+
Append(Environment.NewLine);
9393
}
9494

9595
/// <summary>

0 commit comments

Comments
 (0)