Skip to content

Commit cc71482

Browse files
authored
fix(lab/7): typo (#40)
1 parent 4694db8 commit cc71482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/labs/0x07/tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ pub fn sys_brk(args: &SyscallArgs) -> usize {
799799
} else {
800800
Some(VirtAddr::new(args.arg0 as u64))
801801
};
802-
match brk(addr) {
803-
Some(addr) => addr.as_u64() as usize,
802+
match brk(new_heap_end) {
803+
Some(new_heap_end) => new_heap_end.as_u64() as usize,
804804
None => !0,
805805
}
806806
}

0 commit comments

Comments
 (0)