Skip to content

Commit

Permalink
fix: convert flavor name to string in ratatui example
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy committed Feb 12, 2024
1 parent aa45b65 commit d46bd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ratatui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> io::Result<()> {
.collect();

let width = buf.area.width;
Paragraph::new(flavor.name).render(Rect::new(0, 0, width, 1), buf);
Paragraph::new(flavor.name.to_string()).render(Rect::new(0, 0, width, 1), buf);
Paragraph::new(Line::from(analogous)).render(Rect::new(0, 1, width, 1), buf);
Paragraph::new(Line::from(monochromatic)).render(Rect::new(0, 2, width, 1), buf);
})?;
Expand Down

0 comments on commit d46bd7e

Please sign in to comment.