Skip to content

Commit 978fd2e

Browse files
Change safety note to reflect get_now safety
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
1 parent 8f2e1b8 commit 978fd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/src/clock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Clock {
6868
let mut clock = self._rcl_clock.lock().unwrap();
6969
let mut time_point: i64 = 0;
7070
unsafe {
71-
// SAFETY: The function will only fail if the clock is not initialized
71+
// SAFETY: No preconditions for his function
7272
rcl_clock_get_now(&mut *clock, &mut time_point);
7373
}
7474
Time {

0 commit comments

Comments
 (0)