Skip to content

Commit

Permalink
refactor: rename TNumber as TInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 25, 2023
1 parent b8f85e4 commit 2da8c7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions X10D/src/Math/BinaryIntegerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NET7_0_OR_GREATER
#if NET7_0_OR_GREATER
using System.Diagnostics.Contracts;
using System.Numerics;
using System.Runtime.CompilerServices;
Expand All @@ -18,10 +18,10 @@ public static class BinaryIntegerExtensions
/// <returns>The number of digits in <paramref name="value" />.</returns>
[Pure]
[MethodImpl(CompilerResources.MethodImplOptions)]
public static int CountDigits<TNumber>(this TNumber value)
where TNumber : IBinaryInteger<TNumber>
public static int CountDigits<TInteger>(this TInteger value)
where TInteger : IBinaryInteger<TInteger>
{
if (TNumber.IsZero(value))
if (TInteger.IsZero(value))
{
return 1;
}
Expand Down

0 comments on commit 2da8c7d

Please sign in to comment.