Skip to content

Commit

Permalink
tweak: Minor fix for from_precise_subunits naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Jan 3, 2025
1 parent d13925c commit 57ee7cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radix-common/src/math/precise_decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down

0 comments on commit 57ee7cf

Please sign in to comment.