Unnamed repository; edit this file 'description' to name the repository.
Remove incorrect doc comment
CAD97 2020-03-19
parent 156f423 · commit 14a1f78
-rw-r--r--lib/text-size/src/traits.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/text-size/src/traits.rs b/lib/text-size/src/traits.rs
index fac1eccdc6..8d197db8c1 100644
--- a/lib/text-size/src/traits.rs
+++ b/lib/text-size/src/traits.rs
@@ -6,8 +6,6 @@ pub trait TextSized: Copy {
fn text_size(self) -> TextSize;
}
-/// This will panic for strings larger than `TextSize::MAX` when
-/// debug assertions are enabled, and wrap when they are disabled.
impl TextSized for &'_ str {
#[inline]
fn text_size(self) -> TextSize {