Skip to content

Commit febc028

Browse files
committed
Fix broken intra-doc link for Visuals::override_text_color
Use fully qualified `crate::Visuals::override_text_color` since Visuals is not imported in widget_text.rs. Fixes cargo doc with -D warnings.
1 parent 641446b commit febc028

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/egui/src/widget_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl RichText {
519519
/// 2. Strong color — but only when no [`Style::strong_font`] is configured,
520520
/// because a real bold typeface provides visual distinction on its own
521521
/// 3. Weak color
522-
/// 4. Global [`Visuals::override_text_color`]
522+
/// 4. Global [`crate::Visuals::override_text_color`]
523523
fn get_text_color(&self, style: &Style) -> Option<Color32> {
524524
if let Some(text_color) = self.text_color {
525525
// Explicit color always wins.

0 commit comments

Comments
 (0)