fix: update crossterm example

This commit is contained in:
Florian Dehau 2018-09-09 08:54:12 +02:00
parent ce445a8096
commit e14190ae4b

View File

@ -34,8 +34,8 @@ fn draw(t: &mut Terminal<CrosstermBackend>) -> io::Result<()> {
let size = t.size()?;
t.draw(|mut f| {
let text = [
Text::Data("It "),
Text::StyledData("works", Style::default().fg(Color::Yellow)),
Text::raw("It "),
Text::styled("works", Style::default().fg(Color::Yellow)),
];
Paragraph::new(text.iter())
.block(