From 455ab65bced308faa30c1b5cf28e170e4d1aded8 Mon Sep 17 00:00:00 2001 From: Michael Dorst Date: Wed, 29 Dec 2021 18:49:43 +0000 Subject: [PATCH] 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. --- crates/bevy_sprite/src/collide_aabb.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/bevy_sprite/src/collide_aabb.rs b/crates/bevy_sprite/src/collide_aabb.rs index 8296b359afd04..2bf9bef82dfb7 100644 --- a/crates/bevy_sprite/src/collide_aabb.rs +++ b/crates/bevy_sprite/src/collide_aabb.rs @@ -12,8 +12,9 @@ pub enum Collision { // TODO: ideally we can remove this once bevy gets a physics system /// Axis-aligned bounding box collision with "side" detection -/// * a_pos and b_pos are the center positions of the rectangles, typically obtained by extracting the `translation` field from a `Transform` component -/// * a_size and b_size are the dimensions (width and height) of the rectangles. +/// * `a_pos` and `b_pos` are the center positions of the rectangles, typically obtained by +/// extracting the `translation` field from a `Transform` component +/// * `a_size` and `b_size` are the dimensions (width and height) of the rectangles. pub fn collide(a_pos: Vec3, a_size: Vec2, b_pos: Vec3, b_size: Vec2) -> Option { let a_min = a_pos.truncate() - a_size / 2.0; let a_max = a_pos.truncate() + a_size / 2.0;