mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 20:58:02 +03:00
2stackz: clarify doc comment on NockStack::reset
Co-authored-by: Jonathan Paprocki <51337059+drbeefsupreme@users.noreply.github.com>
This commit is contained in:
parent
fc3be96f00
commit
1ee7ce5c32
@ -123,7 +123,7 @@ impl NockStack {
|
||||
}
|
||||
}
|
||||
|
||||
/** Resets the NockStack. */
|
||||
/** Resets the NockStack. The top frame is west as in the initial creation of the NockStack. */
|
||||
pub fn reset(&mut self, top_slots: usize) {
|
||||
self.frame_pointer = unsafe { self.start.add(RESERVED + top_slots) } as *mut u64;
|
||||
self.stack_pointer = self.frame_pointer;
|
||||
|
Loading…
Reference in New Issue
Block a user