Skip to content

Commit 3dccf81

Browse files
Parameters for method were previously overlooked in xml comments. Added.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e59d1df commit 3dccf81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/F23.StringSimilarity/Support/ArrayExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ internal static class ArrayExtensions
3838
/// <summary>
3939
/// Creates a new array by padding the source array to the specified final length with the given padding value.
4040
/// </summary>
41+
/// <param name="source">The source array to be padded.</param>
42+
/// <param name="finalLength">The desired final length of the array after padding. Must be greater than or equal to the length of <paramref name="source"/>.</param>
43+
/// <param name="paddingValue">The value used to pad the array if it is shorter than <paramref name="finalLength"/>.</param>
44+
/// <returns>A new array of length <paramref name="finalLength"/> containing the elements of <paramref name="source"/>, followed by padding values if necessary.</returns>
4145
internal static T[] WithPadding<T>(this T[] source, int finalLength, T paddingValue = default(T))
4246
{
4347
if (finalLength < source.Length)

0 commit comments

Comments
 (0)