This commit is contained in:
Joscha 2023-02-18 18:56:16 +01:00
parent d449c61f27
commit 42d22e2a49

View file

@ -216,7 +216,7 @@ impl Terminal {
/// Display a [`Widget`] on the screen.
///
/// Before creating and presenting a widget, [`Self::masure_widths`] should
/// Before creating and presenting a widget, [`Self::measure_widths`] should
/// be called. There is no need to call [`Self::autoresize`].
pub fn present_widget<E, W>(&mut self, widget: W) -> Result<(), E>
where
@ -231,7 +231,7 @@ impl Terminal {
/// Display an [`AsyncWidget`] on the screen.
///
/// Before creating and presenting a widget, [`Self::masure_widths`] should
/// Before creating and presenting a widget, [`Self::measure_widths`] should
/// be called. There is no need to call [`Self::autoresize`].
pub async fn present_async_widget<E, W>(&mut self, widget: W) -> Result<(), E>
where