Skip to content

Commit 1480c40

Browse files
Joy-lesslinkdotnet
authored andcommitted
Generate documentation file
1 parent 9ec5d76 commit 1480c40

5 files changed

+9
-4
lines changed

src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2020
<LangVersion>preview</LangVersion>
2121
<EmbedUntrackedSources>true</EmbedUntrackedSources>
22+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2223
</PropertyGroup>
2324

2425
<ItemGroup>

src/LinkDotNet.StringBuilder/ValueStringBuilder.Concat.Helper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public ref partial struct ValueStringBuilder
77
/// <summary>
88
/// Concatenates multiple objects together.
99
/// </summary>
10-
/// <param name="values">Values, which will be concatenated together.</param>
10+
/// <param name="values">Values to be concatenated together.</param>
1111
/// <typeparam name="T">Any given type, which can be translated to <see cref="string"/>.</typeparam>
12-
/// <returns>Concatenated string or an empty string if <see cref="values"/> is empty.</returns>
12+
/// <returns>Concatenated string or an empty string if <paramref name="values"/> is empty.</returns>
1313
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1414
public static string Concat<T>(params T[] values)
1515
{

src/LinkDotNet.StringBuilder/ValueStringBuilder.Enumerator.cs

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ namespace LinkDotNet.StringBuilder;
55

66
public ref partial struct ValueStringBuilder
77
{
8+
/// <summary>
9+
/// Creates an enumerator over the characters in the builder.
10+
/// </summary>
11+
/// <returns>An enumerator over the characters in the builder.</returns>
812
public readonly Enumerator GetEnumerator() => new(buffer[..bufferPosition]);
913

1014
/// <summary>Enumerates the elements of a <see cref="Span{T}"/>.</summary>

src/LinkDotNet.StringBuilder/ValueStringBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public ValueStringBuilder(int initialCapacity)
8585
/// <summary>
8686
/// Returns the character at the given index or throws an <see cref="IndexOutOfRangeException"/> if the index is bigger than the string.
8787
/// </summary>
88-
/// <param name="index">Index position, which should be retrieved.</param>
88+
/// <param name="index">Character position to be retrieved.</param>
8989
public readonly ref char this[int index] => ref buffer[index];
9090

9191
/// <summary>

src/LinkDotNet.StringBuilder/ValueStringBuilderExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static System.Text.StringBuilder ToStringBuilder(this ValueStringBuilder
2323
/// Creates a new <see cref="ValueStringBuilder"/> from the given <paramref name="builder"/>.
2424
/// </summary>
2525
/// <param name="builder">The builder from which the new instance is derived.</param>
26-
/// <returns>A new <see cref="ValueStringBuilder"/> instance with the string represented by this <see cref="builder"/>.</returns>
26+
/// <returns>A new <see cref="ValueStringBuilder"/> instance with the string represented by this builder.</returns>
2727
/// <exception cref="ArgumentNullException">Throws if <paramref name="builder"/> is null.</exception>
2828
public static ValueStringBuilder ToValueStringBuilder(this System.Text.StringBuilder? builder)
2929
{

0 commit comments

Comments
 (0)