Skip to content

Commit

Permalink
- adds missing doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Oct 17, 2023
1 parent 484696e commit 4083f0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public void Clear()
_mimeTypes.Clear();
}

/// <inheritdoc/>
public void CopyTo(string[] array, int arrayIndex)
{
_mimeTypes.OrderByDescending(static x => x.Value).Select(NormalizeMimeType).ToArray().CopyTo(array, arrayIndex);
Expand All @@ -84,7 +85,7 @@ private static string NormalizeMimeType(string key, float value)
{
return $"{key};q={value}";
}

///<inheritdoc/>
public bool Remove(string item)
{
if (GetKeyAndPriority(item) is { } result && _mimeTypes.ContainsKey(result.Key))
Expand Down

0 comments on commit 4083f0c

Please sign in to comment.