Skip to content

Commit

Permalink
Fix comment formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Koute <koute@users.noreply.github.com>
  • Loading branch information
s0me0ne-unkn0wn and koute authored Oct 29, 2023
1 parent 9c3ea9b commit 54686a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions polkadot/node/tracking-allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@ static ALLOCATOR_DATA: Spinlock<TrackingAllocatorData> =
pub struct TrackingAllocator<A: GlobalAlloc>(pub A);

impl<A: GlobalAlloc> TrackingAllocator<A> {
/// Start tracking
/// SAFETY: Failure handler is called with the allocator being in the locked state. Thus, no
/// Start tracking memory allocations and deallocations.
///
/// # Safety
///
/// Failure handler is called with the allocator being in the locked state. Thus, no
/// allocations or deallocations are allowed inside the failure handler; otherwise, a
/// deadlock will occur.
pub unsafe fn start_tracking(
Expand Down

0 comments on commit 54686a1

Please sign in to comment.