From b8b1bfed039adbe3b2817b203c6105511e6208e6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 22 Feb 2025 01:06:46 +0800 Subject: [PATCH] fix doc warnings --- libs/ux-api/src/wordwrap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ux-api/src/wordwrap.rs b/libs/ux-api/src/wordwrap.rs index cfcf067d1..e1368bb07 100644 --- a/libs/ux-api/src/wordwrap.rs +++ b/libs/ux-api/src/wordwrap.rs @@ -42,7 +42,7 @@ pub struct TypesetWord { /// overall height for the word pub height: isize, /// set if this `word` is not drawable, e.g. a newline placeholder. - /// *however* the Vec should still be checked for an insertion point, so that + /// *however* the `Vec` should still be checked for an insertion point, so that /// successive newlines properly get their insertion point drawn pub non_drawable: bool, /// the position in the originating abstract string of the first character in the word @@ -277,7 +277,7 @@ impl Typesetter { /// the caller must reset the cursor to the desired resume position, otherwise it will pick /// up again at the overflow position. /// - /// The final Vec:: is snapped to the top left of the Renderable region. This + /// The final `Vec::` is snapped to the top left of the Renderable region. This /// needs to be transformed into the final screen coordinate space before blitting. pub fn typeset(&mut self, strat: OverflowStrategy) -> ComposedType { // a composition only lasts as long as the lifetime of this call, and is passed back to the caller