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 authored and sebcrozet committed Jun 23, 2024
1 parent b91bcd3 commit fe0fce3
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 @@ -241,7 +241,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 @@ -272,7 +272,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 fe0fce3

Please sign in to comment.