File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ pub struct VirtAddrNotValid(u64);
43
43
impl VirtAddr {
44
44
/// Creates a new canonical virtual address.
45
45
///
46
- /// This function performs sign extension of bit 47 to make the address canonical. Panics
47
- /// if the bits in the range 48 to 64 contain data (i.e. are not null and no sign extension).
46
+ /// This function performs sign extension of bit 47 to make the address canonical.
47
+ ///
48
+ /// ## Panics
49
+ ///
50
+ /// This function panics if the bits in the range 48 to 64 contain data (i.e. are not null and no sign extension).
48
51
#[ inline]
49
52
pub fn new ( addr : u64 ) -> VirtAddr {
50
53
Self :: try_new ( addr) . expect (
@@ -289,7 +292,9 @@ pub struct PhysAddrNotValid(u64);
289
292
impl PhysAddr {
290
293
/// Creates a new physical address.
291
294
///
292
- /// Panics if a bit in the range 52 to 64 is set.
295
+ /// ## Panics
296
+ ///
297
+ /// This function panics if a bit in the range 52 to 64 is set.
293
298
#[ inline]
294
299
pub fn new ( addr : u64 ) -> PhysAddr {
295
300
assert_eq ! (
You can’t perform that action at this time.
0 commit comments