fix warning in doc comment

This commit is contained in:
bunnie 2025-02-17 22:54:27 +08:00
parent f78d54a834
commit 13590c302a

View file

@ -44,7 +44,7 @@ pub struct TypesetWord {
/// overall height for the word
pub height: i16,
/// set if this `word` is not drawable, e.g. a newline placeholder.
/// *however* the Vec<GlyphSprite> should still be checked for an insertion point, so that
/// *however* the `Vec<GlyphSprite>` 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
@ -294,7 +294,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::<TypesetWord> is snapped to the top left of the Renderable region. This
/// The final `Vec::<TypesetWord>` 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