Skip to content

Commit

Permalink
Docs: RawLabel doesnot require ArcStr (#1886)
Browse files Browse the repository at this point in the history
Fixes #1705
  • Loading branch information
maan2003 authored Jul 29, 2021
1 parent 2ae0bf7 commit 06b37f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ You can find its changes [documented below](#070---2021-01-01).
- Added more detailed explanation of `Target::Auto` ([#1761] by [@arthmis])
- Updated source code, tests and docs to use `Selector::with` instead of `Command::new` ([#1761] by [@arthmis])
- Updated docs of `should_propagate_to_hidden`, `children_changed` and `register_for_focus` ([#1861] by [@xarvic])
- Update docs of `RawLabel`: does not require `ArcStr`([#1886] by [@Maan2003])

### Examples

Expand Down Expand Up @@ -771,6 +772,7 @@ Last release without a changelog :(
[#1876]: https://github.com/linebender/druid/pull/1876
[#1882]: https://github.com/linebender/druid/pull/1882
[#1885]: https://github.com/linebender/druid/pull/1885
[#1886]: https://github.com/linebender/druid/pull/1886

[Unreleased]: https://github.com/linebender/druid/compare/v0.7.0...master
[0.7.0]: https://github.com/linebender/druid/compare/v0.6.0...v0.7.0
Expand Down
4 changes: 1 addition & 3 deletions druid/src/widget/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ pub struct Label<T> {

/// A widget that displays text data.
///
/// This requires the `Data` to be `ArcStr`; to handle static, dynamic, or
/// This requires the `Data` to implement [`TextStorage`]; to handle static, dynamic, or
/// localized text, use [`Label`].
///
/// [`Label`]: struct.Label.html
pub struct RawLabel<T> {
layout: TextLayout<T>,
line_break_mode: LineBreaking,
Expand Down

0 comments on commit 06b37f4

Please sign in to comment.