From 21c737417756ae4cbc5ee9f5bc88d496fb52d77d Mon Sep 17 00:00:00 2001 From: Franky Chen Date: Thu, 9 Sep 2021 21:34:19 +0800 Subject: [PATCH] Fix typo #13117 (#13128) * Fix typo #13117 * Fix typo in comments --- .github/actions/spell-check/expect.txt | 1 - .../colorPicker/ColorPickerUI/Helpers/ColorHelper.cs | 2 +- .../ColorPickerUI/Helpers/ColorRepresentationHelper.cs | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index cd129d2408..e4bd886925 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -375,7 +375,6 @@ CXSMICON CXVIRTUALSCREEN cxx cxxopts -CYMK CYSMICON cziplib Dac diff --git a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorHelper.cs b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorHelper.cs index edb2f6d1e0..77ec870238 100644 --- a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorHelper.cs +++ b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorHelper.cs @@ -13,7 +13,7 @@ namespace ColorPicker.Helpers internal static class ColorHelper { /// - /// Convert a given to a CYMK color (cyan, magenta, yellow, black key) + /// Convert a given to a CMYK color (cyan, magenta, yellow, black key) /// /// The to convert /// The cyan[0..1], magenta[0..1], yellow[0..1] and black key[0..1] of the converted color diff --git a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs index ea31696f8b..ff30475a20 100644 --- a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs +++ b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs @@ -35,7 +35,7 @@ namespace ColorPicker.Helpers internal static string GetStringRepresentation(Color color, ColorRepresentationType colorRepresentationType) => colorRepresentationType switch { - ColorRepresentationType.CMYK => ColorToCYMK(color), + ColorRepresentationType.CMYK => ColorToCMYK(color), ColorRepresentationType.HEX => ColorToHex(color), ColorRepresentationType.HSB => ColorToHSB(color), ColorRepresentationType.HSI => ColorToHSI(color), @@ -50,11 +50,11 @@ namespace ColorPicker.Helpers }; /// - /// Return a representation of a CYMK color + /// Return a representation of a CMYK color /// - /// The for the CYMK color presentation - /// A representation of a CYMK color - private static string ColorToCYMK(Color color) + /// The for the CMYK color presentation + /// A representation of a CMYK color + private static string ColorToCMYK(Color color) { var (cyan, magenta, yellow, blackKey) = ColorHelper.ConvertToCMYKColor(color);