diff options
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/src/backend.rs | 2 | ||||
| -rw-r--r-- | graphics/src/primitive.rs | 6 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/graphics/src/backend.rs b/graphics/src/backend.rs index 6774b9ca..c2ac82ba 100644 --- a/graphics/src/backend.rs +++ b/graphics/src/backend.rs @@ -16,7 +16,7 @@ pub trait Backend {  /// A graphics backend that supports text rendering.  pub trait Text { -    /// Loads a [`Font`] from its bytes. +    /// Loads a font from its bytes.      fn load_font(&mut self, font: Cow<'static, [u8]>);      /// Returns the [`cosmic_text::FontSystem`] of the [`Backend`]. diff --git a/graphics/src/primitive.rs b/graphics/src/primitive.rs index cdc8923e..8a97e6e7 100644 --- a/graphics/src/primitive.rs +++ b/graphics/src/primitive.rs @@ -34,11 +34,11 @@ pub enum Primitive<T> {      },      /// A paragraph primitive      Paragraph { -        /// The [`Paragraph`]. +        /// The [`paragraph::Weak`] reference.          paragraph: paragraph::Weak, -        /// The position of the [`Paragraph`]. +        /// The position of the paragraph.          position: Point, -        /// The color of the [`Paragraph`]. +        /// The color of the paragraph.          color: Color,      },      /// A quad primitive | 
