From 81ed466164e8bfaae08fb3e1f9e3146e63c46105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 16 Aug 2025 09:27:54 +0200 Subject: [PATCH] Turn URL in `Color` documentation into an actual link --- core/src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/color.rs b/core/src/color.rs index ad60592a..954aad66 100644 --- a/core/src/color.rs +++ b/core/src/color.rs @@ -197,7 +197,7 @@ impl Color { } /// Returns the relative luminance of the [`Color`]. - /// https://www.w3.org/TR/WCAG21/#dfn-relative-luminance + /// pub fn relative_luminance(self) -> f32 { let linear = self.into_linear(); 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2]