Skip to content

Commit 2515140

Browse files
committed
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.
1 parent 0b3a1c1 commit 2515140

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/bevy_ui/src/widget/text.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ fn scale_value(value: f32, factor: f64) -> f32 {
2121
(value as f64 * factor) as f32
2222
}
2323

24-
/// Defines how min_size, size, and max_size affects the bounds of a text
25-
/// block.
24+
/// Defines how `min_size`, `size`, and `max_size` affects the bounds of a text block.
2625
pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f64) -> f32 {
2726
// Needs support for percentages
2827
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
3433
}
3534
}
3635

37-
/// Computes the size of a text block and updates the TextGlyphs with the
38-
/// new computed glyphs from the layout
36+
/// Computes the size of a text block and updates the `TextGlyphs` with the new computed glyphs
37+
/// from the layout
3938
#[allow(clippy::too_many_arguments, clippy::type_complexity)]
4039
pub fn text_system(
4140
mut queued_text: Local<QueuedText>,

0 commit comments

Comments
 (0)