Skip to content

Commit

Permalink
Optional: Change InternalComparer to InnerComparer
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jan 12, 2025
1 parent f1c4d07 commit 174ca49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ namespace System;

partial struct Optional<T>
{
internal sealed class InternalComparer : IComparer<Optional<T>>
private sealed class InnerComparer : IComparer<Optional<T>>
{
private readonly IComparer<T> comparer;

internal InternalComparer(IComparer<T> comparer)
internal InnerComparer(IComparer<T> comparer)
=>
this.comparer = comparer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ partial struct Optional<T>
// TODO: Add the tests and open the method
internal static IComparer<Optional<T>> CreateComparer(IComparer<T> comparer)
=>
new InternalComparer(comparer ?? throw new ArgumentNullException(nameof(comparer)));
new InnerComparer(comparer ?? throw new ArgumentNullException(nameof(comparer)));
}

0 comments on commit 174ca49

Please sign in to comment.