@@ -87,13 +87,13 @@ impl BlockHeight {
8787 /// Returns block height as a `u32`.
8888 pub const fn to_u32 ( self ) -> u32 { self . 0 }
8989
90- /// Attempt to subtract two [`BlockHeight`]s, returning `None` in case of overflow.
90+ /// Attempt to subtract two [`BlockHeight`]s, returning `None` if overflow occurred .
9191 #[ must_use]
9292 pub fn checked_sub ( self , other : Self ) -> Option < BlockHeightInterval > {
9393 self . 0 . checked_sub ( other. 0 ) . map ( BlockHeightInterval )
9494 }
9595
96- /// Attempt to add an interval to this [`BlockHeight`], returning `None` in case of overflow.
96+ /// Attempt to add an interval to this [`BlockHeight`], returning `None` if overflow occurred .
9797 #[ must_use]
9898 pub fn checked_add ( self , other : BlockHeightInterval ) -> Option < Self > {
9999 self . 0 . checked_add ( other. 0 ) . map ( Self )
@@ -148,11 +148,11 @@ impl BlockHeightInterval {
148148 /// Returns block interval as a `u32`.
149149 pub const fn to_u32 ( self ) -> u32 { self . 0 }
150150
151- /// Attempt to subtract two [`BlockHeightInterval`]s, returning `None` in case of overflow.
151+ /// Attempt to subtract two [`BlockHeightInterval`]s, returning `None` if overflow occurred .
152152 #[ must_use]
153153 pub fn checked_sub ( self , other : Self ) -> Option < Self > { self . 0 . checked_sub ( other. 0 ) . map ( Self ) }
154154
155- /// Attempt to add two [`BlockHeightInterval`]s, returning `None` in case of overflow.
155+ /// Attempt to add two [`BlockHeightInterval`]s, returning `None` if overflow occurred .
156156 #[ must_use]
157157 pub fn checked_add ( self , other : Self ) -> Option < Self > { self . 0 . checked_add ( other. 0 ) . map ( Self ) }
158158}
@@ -220,13 +220,13 @@ impl BlockMtp {
220220 Self :: from_u32 ( u32:: from ( timestamps[ 5 ] ) )
221221 }
222222
223- /// Attempt to subtract two [`BlockMtp`]s, returning `None` in case of overflow.
223+ /// Attempt to subtract two [`BlockMtp`]s, returning `None` if overflow occurred .
224224 #[ must_use]
225225 pub fn checked_sub ( self , other : Self ) -> Option < BlockMtpInterval > {
226226 self . 0 . checked_sub ( other. 0 ) . map ( BlockMtpInterval )
227227 }
228228
229- /// Attempt to add an interval to this [`BlockMtp`], returning `None` in case of overflow.
229+ /// Attempt to add an interval to this [`BlockMtp`], returning `None` if overflow occurred .
230230 #[ must_use]
231231 pub fn checked_add ( self , other : BlockMtpInterval ) -> Option < Self > {
232232 self . 0 . checked_add ( other. 0 ) . map ( Self )
@@ -313,11 +313,11 @@ impl BlockMtpInterval {
313313 relative:: NumberOf512Seconds :: from_seconds_ceil ( self . to_u32 ( ) )
314314 }
315315
316- /// Attempt to subtract two [`BlockMtpInterval`]s, returning `None` in case of overflow.
316+ /// Attempt to subtract two [`BlockMtpInterval`]s, returning `None` if overflow occurred .
317317 #[ must_use]
318318 pub fn checked_sub ( self , other : Self ) -> Option < Self > { self . 0 . checked_sub ( other. 0 ) . map ( Self ) }
319319
320- /// Attempt to add two [`BlockMtpInterval`]s, returning `None` in case of overflow.
320+ /// Attempt to add two [`BlockMtpInterval`]s, returning `None` if overflow occurred .
321321 #[ must_use]
322322 pub fn checked_add ( self , other : Self ) -> Option < Self > { self . 0 . checked_add ( other. 0 ) . map ( Self ) }
323323}
0 commit comments