@@ -605,10 +605,10 @@ macro_rules! implement_page_frame_range {
605605 }
606606
607607 #[ doc = "Returns the offset of the given [`" $address "`] within this `" $TypeName "`, \
608- i.e., `addr - self.start_address()`.\n \n \
609- If the given `addr` is not covered by this range of [`" $chunk "`]s, this returns `None`.\n \n \
610- # Examples\n \
611- If the range covers addresses `0x2000` to `0x4000`, then `offset_of_address(0x3500)` would return `Some(0x1500)`."]
608+ i.e., `addr - self.start_address()`.\n \n \
609+ If the given `addr` is not covered by this range of [`" $chunk "`]s, this returns `None`.\n \n \
610+ # Examples\n \
611+ If the range covers addresses `0x2000` to `0x4000`, then `offset_of_address(0x3500)` would return `Some(0x1500)`."]
612612 pub const fn offset_of_address( & self , addr: $address) -> Option <usize > {
613613 if self . contains_address( addr) {
614614 Some ( addr. value( ) - self . start_address( ) . value( ) )
@@ -618,11 +618,11 @@ macro_rules! implement_page_frame_range {
618618 }
619619
620620 #[ doc = "Returns the [`" $address "`] at the given `offset` into this `" $TypeName "`within this `" $TypeName "`, \
621- i.e., `self.start_address() + offset`.\n \n \
622- If the given `offset` is not within this range of [`" $chunk "`]s, this returns `None`.\n \n \
623- # Examples\n \
624- If the range covers addresses `0x2000` through `0x3FFF`, then `address_at_offset(0x1500)` would return `Some(0x3500)`, \
625- and `address_at_offset(0x2000)` would return `None`."]
621+ i.e., `self.start_address() + offset`.\n \n \
622+ If the given `offset` is not within this range of [`" $chunk "`]s, this returns `None`.\n \n \
623+ # Examples\n \
624+ If the range covers addresses `0x2000` through `0x3FFF`, then `address_at_offset(0x1500)` would return `Some(0x3500)`, \
625+ and `address_at_offset(0x2000)` would return `None`."]
626626 pub const fn address_at_offset( & self , offset: usize ) -> Option <$address> {
627627 if offset < self . size_in_bytes( ) {
628628 Some ( $address:: new_canonical( self . start_address( ) . value( ) + offset) )
0 commit comments