Skip to content

Commit

Permalink
clippy::too_long_first_doc_paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldom-SE committed Jan 27, 2025
1 parent 6137036 commit 8b7d664
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ impl StateMetadata {
}
}

/// State machine component. Entities with this component will have components (the states) added
/// State machine component.
///
/// Entities with this component will have components (the states) added
/// and removed based on the transitions that you add. Build one with `StateMachine::default`,
/// `StateMachine::trans`, and other methods.
#[derive(Component)]
Expand Down
2 changes: 2 additions & 0 deletions src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ impl<Ok, Err> TriggerOut for Result<Ok, Err> {
}
}

/// Conversion trait to turn something into an [`EntityTrigger`].
///
/// Automatically implemented for types that implement [`EntityTrigger`] and certain types that
/// implement
/// [`IntoSystem`]. Types that implement [`IntoSystem`] don't automatically implement
Expand Down
4 changes: 3 additions & 1 deletion src/trigger/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ pub fn clamped_value_max(
}

/// Trigger that transitions if the given [`Actionlike`]'s [`DualAxisData`] is within the given
/// bounds. If no minimum length is necessary, use `0.`. To exclude specifically neutral axis pairs,
/// bounds.
///
/// If no minimum length is necessary, use `0.`. To exclude specifically neutral axis pairs,
/// use a small positive value. If no maximum length is necessary, use `f32::INFINITY`, or similar.
/// If rotation bounds are not necessary, use the same value for the minimum and maximum ex.
/// `Dir2::Y..Dir2::Y`.
Expand Down

0 comments on commit 8b7d664

Please sign in to comment.