Skip to content

Commit

Permalink
docs: Use intradoc links for method references. (bevyengine#9958)
Browse files Browse the repository at this point in the history
# Objective

- Use intradoc links to let the compiler verify correctness.

## Solution

- Use intradoc links.
  • Loading branch information
waywardmonkeys authored and Ray Redondo committed Jan 9, 2024
1 parent 49dd033 commit eac62f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ pub trait Command: Send + 'static {
///
/// # Implementing
///
/// Each built-in command is implemented as a separate method, e.g. [`spawn`](#method.spawn).
/// Each built-in command is implemented as a separate method, e.g. [`Commands::spawn`].
/// In addition to the pre-defined command methods, you can add commands with any arbitrary
/// behavior using [`Commands::add`](#method.add), which accepts any type implementing [`Command`].
/// behavior using [`Commands::add`], which accepts any type implementing [`Command`].
///
/// Since closures and other functions implement this trait automatically, this allows one-shot,
/// anonymous custom commands.
Expand Down

0 comments on commit eac62f7

Please sign in to comment.