From 034c5248d9e3afad3cce3e03aaff0377864edc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 16 Dec 2022 19:39:24 +0100 Subject: [PATCH] Replace `unless ... not` with simply `if ...` in docs --- src/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout.rs b/src/layout.rs index 8f21fd3..2271fd7 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -22,7 +22,7 @@ pub struct LayoutGlyph { pub cache_key: CacheKey, /// X offset in line /// - /// Unless you are not dealing with physical coordinates, you will want to use [`Self::x_int`] + /// If you are dealing with physical coordinates, you will want to use [`Self::x_int`] /// together with [`CacheKey::x_bin`] instead. This will ensure the best alignment of the /// rasterized glyphs with the pixel grid. /// @@ -32,7 +32,7 @@ pub struct LayoutGlyph { pub x_offset: f32, /// Y offset in line /// - /// Unless you are not dealing with physical coordinates, you will want to use [`Self::y_int`] + /// If you are dealing with physical coordinates, you will want to use [`Self::y_int`] /// together with [`CacheKey::y_bin`] instead. This will ensure the best alignment of the /// rasterized glyphs with the pixel grid. ///