mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 12:43:16 +00:00
docs(layout): fix typo in example (#1217)
This commit is contained in:
parent
ccf83e6d76
commit
7c0665cb0e
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ impl Constraint {
|
|||
/// ```rust
|
||||
/// # use ratatui::prelude::*;
|
||||
/// # let area = Rect::default();
|
||||
/// let constraints = Constraint::from_mins([1, 2, 3]);
|
||||
/// let constraints = Constraint::from_fills([1, 2, 3]);
|
||||
/// let layout = Layout::default().constraints(constraints).split(area);
|
||||
/// ```
|
||||
pub fn from_fills<T>(proportional_factors: T) -> Vec<Self>
|
||||
|
|
Loading…
Reference in a new issue