File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,9 @@ impl Timer {
196
196
Ok ( ( ) )
197
197
}
198
198
199
- /// Creates a new timer. Users should call [`Node::create_timer`] or
200
- /// [`Node::create_timer_oneshot`].
199
+ /// Creates a new timer. Users should call one of [`Node::create_timer`],
200
+ /// [`Node::create_timer_repeating`], [`Node::create_timer_oneshot`], or
201
+ /// [`Node::create_timer_inert`].
201
202
pub ( crate ) fn new (
202
203
context : & ContextHandle ,
203
204
period : Duration ,
@@ -286,7 +287,7 @@ impl Timer {
286
287
}
287
288
288
289
/// Updates the state of the rcl_timer to know that it has been called. This
289
- /// should only be called by [`Self::execute `].
290
+ /// should only be called by [`Self::call `].
290
291
///
291
292
/// The callback held by the rcl_timer is null because we store the callback
292
293
/// in the [`Timer`] struct. This means there are no side-effects to this
@@ -530,7 +531,7 @@ mod tests {
530
531
) ) ;
531
532
532
533
// The unwrap will panic if anything went wrong with the call
533
- timer. rcl_call ( ) . unwrap ( ) ;
534
+ timer. call ( ) . unwrap ( ) ;
534
535
535
536
// The unwrap will panic if the remaining time is negative
536
537
timer. time_until_next_call ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments