Skip to content

Commit

Permalink
Fix Text.scale docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Sep 12, 2020
1 parent 981510d commit e695543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions glyph-brush/src/owned_section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ impl<'a> From<&'a OwnedSection> for Cow<'a, Section<'a>> {

#[derive(Debug, Clone, PartialEq)]
pub struct OwnedText<X = Extra> {
/// Text to render
/// Text to render.
pub text: String,
/// Position on screen to render text, in pixels from top-left. Defaults to (0, 0).
/// Pixel scale of text. Defaults to 16.
pub scale: PxScale,
/// Font id to use for this section.
///
Expand Down
4 changes: 2 additions & 2 deletions glyph-brush/src/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ impl<X: Hash> Hash for Section<'_, X> {
/// `SectionText` + extra.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Text<'a, X = Extra> {
/// Text to render
/// Text to render.
pub text: &'a str,
/// Position on screen to render text, in pixels from top-left. Defaults to (0, 0).
/// Pixel scale of text. Defaults to 16.
pub scale: PxScale,
/// Font id to use for this section.
///
Expand Down

0 comments on commit e695543

Please sign in to comment.