Skip to content

Commit

Permalink
Fix typos in Time::last_update and Time::time_since_startup docum…
Browse files Browse the repository at this point in the history
…entation (bevyengine#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.
  • Loading branch information
mdickopp authored and aevyrie committed Jun 7, 2022
1 parent 312a7a7 commit 6ac32ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_core/src/time/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ac32ed

Please sign in to comment.