Skip to content

Commit e8d3796

Browse files
committed
Fix typos
1 parent 4c7d8bf commit e8d3796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ where
332332
let size = max_phys.as_u64();
333333
let alignment = Size2MiB::SIZE;
334334
let offset = mapping_addr(mapping, size, alignment, &mut used_entries)
335-
.expect("start addraess for physical memory mapping must be 2MiB-page-aligned");
335+
.expect("start address for physical memory mapping must be 2MiB-page-aligned");
336336

337337
for frame in PhysFrame::range_inclusive(start_frame, end_frame) {
338338
let page = Page::containing_address(offset + frame.start_address().as_u64());
@@ -388,7 +388,7 @@ where
388388
Mappings {
389389
framebuffer: framebuffer_virt_addr,
390390
entry_point,
391-
// Use the configured stack size, even if it's not page aligned. However, we
391+
// Use the configured stack size, even if it's not page-aligned. However, we
392392
// need to align it down to the next 16-byte boundary because the System V
393393
// ABI requires a 16-byte stack alignment.
394394
stack_top: stack_end_addr.align_down(16u8),

0 commit comments

Comments
 (0)