Skip to content

Commit 676cdf2

Browse files
committed
Address review comments
1 parent 5e68ea2 commit 676cdf2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

measureme/src/profiler.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,13 @@ impl Profiler {
123123
}
124124

125125
/// Creates a "start" event and returns a `DetachedTiming`.
126-
/// To create the corresponding "event" event, yuu must call
126+
/// To create the corresponding "event" event, you must call
127127
/// `finish_recording_internal_event` with the returned
128-
/// `DetachedTiming`
128+
/// `DetachedTiming`.
129+
/// Since `DetachedTiming` does not capture the lifetime of `&self`,
130+
/// this method can sometimes be more convenient than
131+
/// `start_recording_interval_event` - e.g. it can be stored
132+
/// in a struct without the need to add a lifetime parameter.
129133
#[inline]
130134
pub fn start_recording_interval_event_detached(
131135
&self,

0 commit comments

Comments
 (0)