Skip to content

Commit f372474

Browse files
authored
Uint: fix macro-generated concat/split docs (#530)
It wasn't updated to reflect the low/high ordering changes from #526
1 parent 0977d82 commit f372474

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/uint/macros.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ macro_rules! impl_uint_concat_split_even {
113113
}
114114

115115
impl Uint<{ <$name>::LIMBS / 2 }> {
116-
/// Concatenate the two values, with `self` as most significant and `rhs`
117-
/// as the least significant.
116+
/// Concatenate the two values, with `self` as least significant and `hi` as the most
117+
/// significant.
118118
pub const fn concat(&self, hi: &Uint<{ <$name>::LIMBS / 2 }>) -> $name {
119119
$crate::uint::concat::concat_mixed(self, hi)
120120
}
@@ -133,8 +133,7 @@ macro_rules! impl_uint_concat_split_even {
133133
}
134134

135135
impl $name {
136-
/// Split this number in half, returning its high and low components
137-
/// respectively.
136+
/// Split this number in half, returning its low and high components respectively.
138137
pub const fn split(&self) -> (Uint<{ <$name>::LIMBS / 2 }>, Uint<{ <$name>::LIMBS / 2 }>) {
139138
$crate::uint::split::split_mixed(self)
140139
}

0 commit comments

Comments
 (0)