turn `exec` comment into doc comment

This commit is contained in:
Rémy Rakic 2022-04-01 20:50:16 +02:00
parent ed6c958ee4
commit 1c4ae7aa4a
1 changed files with 5 additions and 5 deletions

View File

@ -183,11 +183,11 @@ impl SelfProfilerRef {
} }
} }
// This shim makes sure that calls only get executed if the filter mask /// This shim makes sure that calls only get executed if the filter mask
// lets them pass. It also contains some trickery to make sure that /// lets them pass. It also contains some trickery to make sure that
// code is optimized for non-profiling compilation sessions, i.e. anything /// code is optimized for non-profiling compilation sessions, i.e. anything
// past the filter check is never inlined so it doesn't clutter the fast /// past the filter check is never inlined so it doesn't clutter the fast
// path. /// path.
#[inline(always)] #[inline(always)]
fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_> fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_>
where where