From 251514017f3ab50adffeb5f3fcab98aafc62c589 Mon Sep 17 00:00:00 2001 From: Michael Dorst Date: Wed, 5 Jan 2022 22:30:14 +0000 Subject: [PATCH] Fix `doc_markdown` lints in `bevy_ui` (#3484) #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_ui` crate. --- crates/bevy_ui/src/widget/text.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index 5af7a84c1d165..5d5dfcea40192 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -21,8 +21,7 @@ fn scale_value(value: f32, factor: f64) -> f32 { (value as f64 * factor) as f32 } -/// Defines how min_size, size, and max_size affects the bounds of a text -/// block. +/// Defines how `min_size`, `size`, and `max_size` affects the bounds of a text block. pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f64) -> f32 { // Needs support for percentages match (min_size, size, max_size) { @@ -34,8 +33,8 @@ pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f6 } } -/// Computes the size of a text block and updates the TextGlyphs with the -/// new computed glyphs from the layout +/// Computes the size of a text block and updates the `TextGlyphs` with the new computed glyphs +/// from the layout #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub fn text_system( mut queued_text: Local,