Skip to content

Commit 455ab65

Browse files
committed
Fix doc_markdown lints in bevy_sprite (#3480)
#3457 adds the `doc_markdown` clippy lint, which checks doc comments to make sure code identifiers are escaped with backticks. This causes a lot of lint errors, so this is one of a number of PR's that will fix those lint errors one crate at a time. This PR fixes lints in the `bevy_sprite` crate.
1 parent 608e63a commit 455ab65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/bevy_sprite/src/collide_aabb.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ pub enum Collision {
1212

1313
// TODO: ideally we can remove this once bevy gets a physics system
1414
/// Axis-aligned bounding box collision with "side" detection
15-
/// * a_pos and b_pos are the center positions of the rectangles, typically obtained by extracting the `translation` field from a `Transform` component
16-
/// * a_size and b_size are the dimensions (width and height) of the rectangles.
15+
/// * `a_pos` and `b_pos` are the center positions of the rectangles, typically obtained by
16+
/// extracting the `translation` field from a `Transform` component
17+
/// * `a_size` and `b_size` are the dimensions (width and height) of the rectangles.
1718
pub fn collide(a_pos: Vec3, a_size: Vec2, b_pos: Vec3, b_size: Vec2) -> Option<Collision> {
1819
let a_min = a_pos.truncate() - a_size / 2.0;
1920
let a_max = a_pos.truncate() + a_size / 2.0;

0 commit comments

Comments
 (0)