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.
This commit is contained in:
Martin Dickopp 2022-04-13 21:34:21 +00:00
parent 621f3969c7
commit 995f85e157

View file

@ -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<Instant> {
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