Skip to content

Commit 06b37f4

Browse files
authored
Docs: RawLabel doesnot require ArcStr (#1886)
Fixes #1705
1 parent 2ae0bf7 commit 06b37f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ You can find its changes [documented below](#070---2021-01-01).
108108
- Added more detailed explanation of `Target::Auto` ([#1761] by [@arthmis])
109109
- Updated source code, tests and docs to use `Selector::with` instead of `Command::new` ([#1761] by [@arthmis])
110110
- Updated docs of `should_propagate_to_hidden`, `children_changed` and `register_for_focus` ([#1861] by [@xarvic])
111+
- Update docs of `RawLabel`: does not require `ArcStr`([#1886] by [@Maan2003])
111112

112113
### Examples
113114

@@ -771,6 +772,7 @@ Last release without a changelog :(
771772
[#1876]: https://github.com/linebender/druid/pull/1876
772773
[#1882]: https://github.com/linebender/druid/pull/1882
773774
[#1885]: https://github.com/linebender/druid/pull/1885
775+
[#1886]: https://github.com/linebender/druid/pull/1886
774776

775777
[Unreleased]: https://github.com/linebender/druid/compare/v0.7.0...master
776778
[0.7.0]: https://github.com/linebender/druid/compare/v0.6.0...v0.7.0

druid/src/widget/label.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ pub struct Label<T> {
8989

9090
/// A widget that displays text data.
9191
///
92-
/// This requires the `Data` to be `ArcStr`; to handle static, dynamic, or
92+
/// This requires the `Data` to implement [`TextStorage`]; to handle static, dynamic, or
9393
/// localized text, use [`Label`].
94-
///
95-
/// [`Label`]: struct.Label.html
9694
pub struct RawLabel<T> {
9795
layout: TextLayout<T>,
9896
line_break_mode: LineBreaking,

0 commit comments

Comments
 (0)