diff --git a/readme.md b/readme.md index dca297e..61bd3b8 100644 --- a/readme.md +++ b/readme.md @@ -51,7 +51,7 @@ fn main() { .run(); } -fn spawn_player(In(transform): In, mut commands: Commands) { { +fn spawn_player(In(transform): In, mut commands: Commands) { commands.spawn(( Name::new("Spiffy the Adventurer"), TransformBundle::from_transform(transform), diff --git a/src/events.rs b/src/events.rs index f5ce64e..9b429bc 100644 --- a/src/events.rs +++ b/src/events.rs @@ -5,7 +5,7 @@ mod blanket_impls; /// An event that will spawn an object in the world. /// This is the most common way to interact with the plugin. /// `T` is the type of the object to spawn, and `D` is the type of the user-provided data. -/// Any combination of `T` and `D` used in a `SpawnEvent` must have been registered with an own [`SpewPlugin`] beforehand. +/// Any combination of `T` and `D` used in a `SpawnEvent` must have been registered with an own [`SpewPlugin`](crate::prelude::SpewPlugin) beforehand. /// /// # Example /// ```rust