Skip to content

Commit d9e188b

Browse files
Vincent Rouillécuviper
andcommitted
More idiomatic lifetime declaration & fix comments
Co-authored-by: Josh Stone <cuviper@gmail.com>
1 parent b0bed64 commit d9e188b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/bigint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,7 +2981,7 @@ impl BigInt {
29812981
(self.sign, self.data.to_u32_digits())
29822982
}
29832983

2984-
/// Returns the sign and the `u32` digits representation of the `BigInt` ordered least
2984+
/// Returns the sign and the `u64` digits representation of the `BigInt` ordered least
29852985
/// significant digit first.
29862986
///
29872987
/// # Examples
@@ -3015,11 +3015,11 @@ impl BigInt {
30153015
/// assert_eq!(BigInt::from(112500000000i64).iter_u32_digits().collect::<Vec<u32>>(), vec![830850304, 26]);
30163016
/// ```
30173017
#[inline]
3018-
pub fn iter_u32_digits<'a>(&'a self) -> IterU32Digits<'a> {
3018+
pub fn iter_u32_digits(&self) -> IterU32Digits<'_> {
30193019
self.data.iter_u32_digits()
30203020
}
30213021

3022-
/// Returns the `u32` digits representation of the `BigUint` ordered least significant digit
3022+
/// Returns the `u64` digits representation of the `BigUint` ordered least significant digit
30233023
/// first.
30243024
///
30253025
/// # Examples

src/biguint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ impl<'a> IterU32Digits<'a> {
23122312
}
23132313
}
23142314
#[cfg(u64_digit)]
2315-
impl<'a> Iterator for IterU32Digits<'a> {
2315+
impl Iterator for IterU32Digits<'_> {
23162316
type Item = u32;
23172317
fn next(&mut self) -> Option<u32> {
23182318
match self.data.split_first() {
@@ -2747,7 +2747,7 @@ impl BigUint {
27472747
self.iter_u32_digits().collect()
27482748
}
27492749

2750-
/// Returns the `u32` digits representation of the `BigUint` ordered least significant digit
2750+
/// Returns the `u64` digits representation of the `BigUint` ordered least significant digit
27512751
/// first.
27522752
///
27532753
/// # Examples

0 commit comments

Comments
 (0)