Skip to content

Commit

Permalink
chore: fix the method name for setting the Line style (#947)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Feb 12, 2024
1 parent 1f208ff commit 18870ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BREAKING-CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ longer can be called from a constant context.
[#708]: https://github.com/ratatui-org/ratatui/pull/708

Previously the style of a `Line` was stored in the `Span`s that make up the line. Now the `Line`
itself has a `style` field, which can be set with the `Line::style` method. Any code that creates
itself has a `style` field, which can be set with the `Line::styled` method. Any code that creates
`Line`s using the struct initializer instead of constructors will fail to compile due to the added
field. This can be easily fixed by adding `..Default::default()` to the field list or by using a
constructor method (`Line::styled()`, `Line::raw()`) or conversion method (`Line::from()`).
Expand Down

0 comments on commit 18870ce

Please sign in to comment.