Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
doc(widgets/clear): clarify usage of clear
Browse files Browse the repository at this point in the history
  • Loading branch information
fdehau committed Jun 16, 2021
1 parent 8da5f74 commit fbd8344
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/widgets/clear.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use crate::buffer::Buffer;
use crate::layout::Rect;
use crate::widgets::Widget;
use crate::{buffer::Buffer, layout::Rect, widgets::Widget};

/// A widget to to clear/reset a certain area to allow overdrawing (e.g. for popups)
/// A widget to clear/reset a certain area to allow overdrawing (e.g. for popups).
///
/// This widget **cannot be used to clear the terminal on the first render** as `tui` assumes the
/// render area is empty. Use [`crate::Terminal::clear`] instead.
///
/// # Examples
///
Expand Down

0 comments on commit fbd8344

Please sign in to comment.