Skip to content

Commit 066e82f

Browse files
bors[bot]CAD97
andauthored
Merge #46
46: Fix TextSize::of docs to no longer suggest implementing TextLen r=matklad a=CAD97 Addresses the misleading docs part of #45 by editing the docs back to their minimum. Does not yet provide advice on idioms for non-primitive types. Co-authored-by: CAD97 <[email protected]>
2 parents 5c24bbb + 4bf6b19 commit 066e82f

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)