Skip to content

Commit

Permalink
docs(layout): fix typo in example (ratatui#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiOnGit authored and joshka committed Oct 14, 2024
1 parent 52371ce commit 34fb3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/constraint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 34fb3af

Please sign in to comment.