Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Sep 17, 2024
1 parent ad7be99 commit 3e423ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/roc_std_heap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<T> RefcountedResourceHeap<T> {
/// Promotes all live references to constants.
/// Does this my walking all allocations and setting the refcount to zero (constant).
/// It will also end up walking freed elements, but their bytes are uninitialized and don't matter.
/// This is great for calling after an init function where all lived data is guarenteed to live until the server finishes running.
/// This is great for calling after an init function where all lived data is guaranteed to live until the server finishes running.
pub fn promote_all_to_constant(&mut self) {
for i in 0..self.0.elements {
let offset = i * Heap::<Refcounted<T>>::node_size();
Expand Down

0 comments on commit 3e423ce

Please sign in to comment.