diff --git a/palette/src/relative_contrast.rs b/palette/src/relative_contrast.rs index 887790f6e..981e9b42f 100644 --- a/palette/src/relative_contrast.rs +++ b/palette/src/relative_contrast.rs @@ -12,9 +12,9 @@ use {from_f64, FromF64}; /// These criteria are recommendations, not hard and fast rules. Most /// importantly, look at the colors in action and make sure they're clear and /// comfortable to read. A pair of colors may pass contrast guidelines but still -/// be uncomfortable to look. Favor readability over only satisfying the +/// be uncomfortable to look at. Favor readability over only satisfying the /// contrast ratio metric. It is recommended to verify the contrast ratio -/// in the output format of the colors, and not to assume the contrast ratio +/// in the output format of the colors and not to assume the contrast ratio /// remains exactly the same across color formats. The following example checks /// the contrast ratio of two colors in RGB format. /// @@ -41,7 +41,7 @@ use {from_f64, FromF64}; /// contrast" such as user interface components and other graphics. The relative /// contrast is calculated by `(L1 + 0.05) / (L2 + 0.05)`, where `L1` is the /// luminance of the brighter color and `L2` is the luminance of the darker -/// color both in sRGB linear space. Higher contrast ratio is generally +/// color both in sRGB linear space. A higher contrast ratio is generally /// desireable. /// /// For more details, visit the following links: