mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
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:
parent
621f3969c7
commit
995f85e157
1 changed files with 2 additions and 2 deletions
|
@ -75,13 +75,13 @@ impl Time {
|
||||||
self.startup
|
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]
|
#[inline]
|
||||||
pub fn last_update(&self) -> Option<Instant> {
|
pub fn last_update(&self) -> Option<Instant> {
|
||||||
self.last_update
|
self.last_update
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The ['Duration'] from startup to the last update
|
/// The [`Duration`] from startup to the last update
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn time_since_startup(&self) -> Duration {
|
pub fn time_since_startup(&self) -> Duration {
|
||||||
self.time_since_startup
|
self.time_since_startup
|
||||||
|
|
Loading…
Add table
Reference in a new issue