Skip to content

Commit

Permalink
Update comments in Reallocator implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmertin committed May 12, 2024
1 parent ec98283 commit c8f1cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/default_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ where

// Safety:
// - We don’t care about dropping elements because the caller is responsible for dropping things.
// - We forget `buf` so that we don’t drop the other elements.
// - We forget `buf` so that we don’t drop the other elements, but ensure the buffer itself is cleaned up.
buf.forget_elements();

res
Expand Down Expand Up @@ -268,7 +268,7 @@ where

// Safety:
// - We don’t care about dropping elements because the caller is responsible for dropping things.
// - We forget `buf` so that we don’t drop the other elements.
// - We forget `buf` so that we don’t drop the other elements, but ensure the buffer itself is cleaned up.
buf.forget_elements();

res
Expand Down

0 comments on commit c8f1cf4

Please sign in to comment.