docs(layout): fix typo in example (#1217)

This commit is contained in:
Emi 2024-07-05 13:56:29 +02:00 committed by GitHub
parent ccf83e6d76
commit 7c0665cb0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>