Skip to content

Commit 4bf6b19

Browse files
committed
Fix TextSize::of docs to no longer suggest implementing TextLen
1 parent 5c24bbb commit 4bf6b19

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/size.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ impl fmt::Debug for TextSize {
3333
}
3434

3535
impl TextSize {
36-
/// The text size of some text-like object.
36+
/// The text size of some primitive text-like object.
3737
///
38-
/// Accepts `char`, `&str`, and references to any custom string-like type
39-
/// that dereferences to `str`. Types that don't dereference to `str` but
40-
/// want to be usable in this constructor can implement [`TextLen`].
38+
/// Accepts `char`, `&str`, and `&String`.
4139
///
4240
/// # Examples
4341
///

0 commit comments

Comments
 (0)