File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 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);
4343impl VirtAddr {
4444 /// Creates a new canonical virtual address.
4545 ///
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).
4851 #[ inline]
4952 pub fn new ( addr : u64 ) -> VirtAddr {
5053 Self :: try_new ( addr) . expect (
@@ -289,7 +292,9 @@ pub struct PhysAddrNotValid(u64);
289292impl PhysAddr {
290293 /// Creates a new physical address.
291294 ///
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.
293298 #[ inline]
294299 pub fn new ( addr : u64 ) -> PhysAddr {
295300 assert_eq ! (
You can’t perform that action at this time.
0 commit comments