diff --git a/packages/std/src/coins.rs b/packages/std/src/coins.rs index 44e72e1330..08171a1424 100644 --- a/packages/std/src/coins.rs +++ b/packages/std/src/coins.rs @@ -101,12 +101,18 @@ impl fmt::Display for Coins { } impl Coins { - /// Conversion to Vec, while NOT consuming the original object + /// Conversion to Vec, while NOT consuming the original object. + /// + /// This produces a vector of coins that is sorted alphabetically by denom with + /// no duplicate denoms. pub fn to_vec(&self) -> Vec { self.0.values().cloned().collect() } - /// Conversion to Vec, consuming the original object + /// Conversion to Vec, consuming the original object. + /// + /// This produces a vector of coins that is sorted alphabetically by denom with + /// no duplicate denoms. pub fn into_vec(self) -> Vec { self.0.into_values().collect() }