Skip to content

Commit

Permalink
docs: Improve README examples 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Jan 9, 2024
1 parent 12aa586 commit 2dc8183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cargo add ratatui-macros
Then, import the macros in your Rust file:

```rust
use ratatui_macros::{constraints, vertical, horizontal};
use ratatui_macros::{constraints, constraint, vertical, horizontal};
```

Use the `constraints!` macro to define layout constraints:
Expand Down Expand Up @@ -60,7 +60,7 @@ assert_eq!(
)
```

You can also use the `constraint!` macro to define individual constraints:
Use the `constraint!` macro to define individual constraints:

```rust
use ratatui::prelude::*;
Expand Down

0 comments on commit 2dc8183

Please sign in to comment.