mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 15:14:27 +00:00
Fix custom_widget example
This commit is contained in:
parent
b8fd4a8685
commit
7749e5ee35
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ impl<'a> Default for Label<'a> {
|
|||
}
|
||||
|
||||
impl<'a> Widget for Label<'a> {
|
||||
fn draw(&self, area: &Rect, buf: &mut Buffer) {
|
||||
fn draw(&mut self, area: &Rect, buf: &mut Buffer) {
|
||||
buf.set_string(area.left(), area.top(), self.text, &Style::default());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue