Skip to content

Commit

Permalink
Fix doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Sep 26, 2022
1 parent 09deb53 commit dbd01a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arrow-buffer/src/bigint.rs
Expand Up @@ -125,7 +125,7 @@ impl i256 {
Some(Self::from_parts(low, high))
}

/// Performs wrapping addition
/// Performs wrapping subtraction
#[inline]
pub fn wrapping_sub(self, other: Self) -> Self {
let (left_low, left_high) = self.as_parts();
Expand All @@ -136,7 +136,7 @@ impl i256 {
Self::from_parts(low, high)
}

/// Performs checked addition
/// Performs checked subtraction
#[inline]
pub fn checked_sub(self, other: Self) -> Option<Self> {
let (left_low, left_high) = self.as_parts();
Expand Down Expand Up @@ -189,7 +189,7 @@ impl i256 {
Self::from_bigint_with_overflow(l % r).0
}

/// Performs checked division
/// Performs checked remainder
#[inline]
pub fn checked_rem(self, other: Self) -> Option<Self> {
if other.0 == [0; 32] {
Expand Down

0 comments on commit dbd01a4

Please sign in to comment.