Skip to content

Commit

Permalink
Add missing docstring to VariableCombination.CompareTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig-Work committed Jun 1, 2023
1 parent bd1861b commit 9a2220e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LazyMathInstructor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ public override string ToString()
return result;
}

/// <summary>
/// Compares two <see cref="VariableCombination"/>s to establish an ordering.
/// Earlier letters and higher exponents are ordered before later letters and smaller exponents:
/// a^3 < a^2 < ab < b^2 < c
/// </summary>
public int CompareTo(object obj)
{
if (obj is not VariableCombination other)
Expand Down

0 comments on commit 9a2220e

Please sign in to comment.