From 04e1b32cd2e77653266fa8e7269a2e08d774220e Mon Sep 17 00:00:00 2001 From: miro Date: Tue, 22 Oct 2024 17:15:36 +0800 Subject: [PATCH] docs(layout): rename cassowary-rs references to cassowary (#1448) closes #1423 --- src/layout/layout.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layout/layout.rs b/src/layout/layout.rs index 4cc3197a..aace07ad 100644 --- a/src/layout/layout.rs +++ b/src/layout/layout.rs @@ -114,7 +114,7 @@ impl From for Spacing { /// - a flex option /// - a spacing option /// -/// The algorithm used to compute the layout is based on the [`cassowary-rs`] solver. It is a simple +/// The algorithm used to compute the layout is based on the [`cassowary`] solver. It is a simple /// linear solver that can be used to solve linear equations and inequalities. In our case, we /// define a set of constraints that are applied to split the provided area into Rects aligned in a /// single direction, and the solver computes the values of the position and sizes that satisfy as @@ -171,7 +171,7 @@ impl From for Spacing { /// ![layout /// example](https://camo.githubusercontent.com/77d22f3313b782a81e5e033ef82814bb48d786d2598699c27f8e757ccee62021/68747470733a2f2f7668732e636861726d2e73682f7668732d315a4e6f4e4c4e6c4c746b4a58706767396e435635652e676966) /// -/// [`cassowary-rs`]: https://crates.io/crates/cassowary +/// [`cassowary`]: https://crates.io/crates/cassowary /// [Examples]: https://github.com/ratatui/ratatui/blob/main/examples/README.md #[derive(Debug, Default, Clone, Eq, PartialEq, Hash)] pub struct Layout { @@ -567,7 +567,7 @@ impl Layout { .expect("invalid number of rects") } - /// Wrapper function around the cassowary-rs solver to be able to split a given area into + /// Wrapper function around the cassowary solver to be able to split a given area into /// smaller ones based on the preferred widths or heights and the direction. /// /// Note that the constraints are applied to the whole area that is to be split, so using @@ -605,7 +605,7 @@ impl Layout { self.split_with_spacers(area).0 } - /// Wrapper function around the cassowary-rs solver that splits the given area into smaller ones + /// Wrapper function around the cassowary solver that splits the given area into smaller ones /// based on the preferred widths or heights and the direction, with the ability to include /// spacers between the areas. ///