Skip to content

Commit

Permalink
Fix doc_markdown lints in bevy_ui (#3484)
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
mfdorst committed Jan 5, 2022
1 parent 0b3a1c1 commit 2515140
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/bevy_ui/src/widget/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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<QueuedText>,
Expand Down

0 comments on commit 2515140

Please sign in to comment.