From 57ee7cfa641cffca9969f73262b413c4ad7945bd Mon Sep 17 00:00:00 2001 From: David Edey Date: Fri, 3 Jan 2025 09:50:48 +0000 Subject: [PATCH] tweak: Minor fix for from_precise_subunits naming --- radix-common/src/math/precise_decimal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radix-common/src/math/precise_decimal.rs b/radix-common/src/math/precise_decimal.rs index 958d154d5c..de85c68b00 100644 --- a/radix-common/src/math/precise_decimal.rs +++ b/radix-common/src/math/precise_decimal.rs @@ -101,8 +101,8 @@ impl PreciseDecimal { ])); /// Constructs a [`PreciseDecimal`] from its underlying `10^(-36)` subunits. - pub const fn from_precise_subunits(attos: I256) -> Self { - Self(attos) + pub const fn from_precise_subunits(precise_subunits: I256) -> Self { + Self(precise_subunits) } /// Returns the underlying `10^(-36)` subunits of the [`PreciseDecimal`].