We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f8bf2 commit e621ed2Copy full SHA for e621ed2
src/tools/rust-analyzer/lib/text-size/src/size.rs
@@ -33,11 +33,9 @@ impl fmt::Debug for TextSize {
33
}
34
35
impl TextSize {
36
- /// The text size of some text-like object.
+ /// The text size of some primitive text-like object.
37
///
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`].
+ /// Accepts `char`, `&str`, and `&String`.
41
42
/// # Examples
43
0 commit comments