From 2da8c7db7ab19e86b7991f1a2ba63cc550401cb4 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 25 Aug 2023 02:53:06 +0100 Subject: [PATCH] refactor: rename TNumber as TInteger --- X10D/src/Math/BinaryIntegerExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/X10D/src/Math/BinaryIntegerExtensions.cs b/X10D/src/Math/BinaryIntegerExtensions.cs index 582c624..3e5fd21 100644 --- a/X10D/src/Math/BinaryIntegerExtensions.cs +++ b/X10D/src/Math/BinaryIntegerExtensions.cs @@ -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; @@ -18,10 +18,10 @@ public static class BinaryIntegerExtensions /// The number of digits in . [Pure] [MethodImpl(CompilerResources.MethodImplOptions)] - public static int CountDigits(this TNumber value) - where TNumber : IBinaryInteger + public static int CountDigits(this TInteger value) + where TInteger : IBinaryInteger { - if (TNumber.IsZero(value)) + if (TInteger.IsZero(value)) { return 1; }