From 995f85e157a274a2b2d9c0bfd16f1bcbb586fa1b Mon Sep 17 00:00:00 2001 From: Martin Dickopp Date: Wed, 13 Apr 2022 21:34:21 +0000 Subject: [PATCH] Fix typos in `Time::last_update` and `Time::time_since_startup` documentation (#4470) # Objective The documentation of the `Time::last_update` and `Time::time_since_startup` methods contains typos. It uses apostrophe instead of backtick characters around `Instant` and `Duration`, so that these words are not recognized as identifiers in the generated API documentation. This should be fixed. ## Solution Fix the typos. --- crates/bevy_core/src/time/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_core/src/time/time.rs b/crates/bevy_core/src/time/time.rs index c47855e974a74..dd75fc818d134 100644 --- a/crates/bevy_core/src/time/time.rs +++ b/crates/bevy_core/src/time/time.rs @@ -75,13 +75,13 @@ impl Time { self.startup } - /// The ['Instant'] when [`Time::update`] was last called, if it exists + /// The [`Instant`] when [`Time::update`] was last called, if it exists #[inline] pub fn last_update(&self) -> Option { self.last_update } - /// The ['Duration'] from startup to the last update + /// The [`Duration`] from startup to the last update #[inline] pub fn time_since_startup(&self) -> Duration { self.time_since_startup