diff --git a/src/utils/string_utils.rs b/src/utils/string_utils.rs index 41fb281..5006f20 100644 --- a/src/utils/string_utils.rs +++ b/src/utils/string_utils.rs @@ -97,11 +97,11 @@ pub fn check_emoji_code(shortcut: &str) -> bool { /// Check the validity of an HTML color /// /// ``` -/// use comunic_server::utils::string_utils::check_emoji_code; +/// use comunic_server::utils::string_utils::check_html_color; /// -/// assert_eq!(check_emoji_code("AAFF00"), true); -/// assert_eq!(check_emoji_code("ABC"), false); -/// assert_eq!(check_emoji_code("UUFF00"), false); +/// assert_eq!(check_html_color("AAFF00"), true); +/// assert_eq!(check_html_color("ABC"), false); +/// assert_eq!(check_html_color("UUFF00"), false); /// ``` pub fn check_html_color(color: &str) -> bool { let r = Regex::new(r"^[A-F0-9]{6}$").unwrap();