From c30dcbed8ff3609ef7e11e045c76ab27d4a49183 Mon Sep 17 00:00:00 2001 From: S0Ulle33 <29702137+S0Ulle33@users.noreply.github.com> Date: Sat, 1 Aug 2020 18:00:24 +0600 Subject: [PATCH] Fix doc --- docs/source/panel.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/panel.rst b/docs/source/panel.rst index b98af37b..bbb938d7 100644 --- a/docs/source/panel.rst +++ b/docs/source/panel.rst @@ -9,7 +9,7 @@ To draw a border around any content, construct a :class:`~rich.panel.Panel` with You can change the style of the panel by setting the ``box`` argument to the Panel constructor. See :ref:`appendix_box` for a list of available box styles. -Panels will extend to the full width of the terminal. You can make panel *fit* the content why setting ``fit=True`` on the constructor, or by creating the Panel with :meth:`~rich.panel.Panel.fit`. For example:: +Panels will extend to the full width of the terminal. You can make panel *fit* the content by setting ``expand=False`` on the constructor, or by creating the Panel with :meth:`~rich.panel.Panel.fit`. For example:: from rich import print from rich.panel import Panel @@ -21,4 +21,4 @@ The Panel constructor accepts a ``title`` argument which will draw a title withi from rich.panel import Panel print(Panel("Hello, [red]World!", title="Welcome")) -See :class:`~rich.panel.Panel` for details how to customize Panels. \ No newline at end of file +See :class:`~rich.panel.Panel` for details how to customize Panels.