summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/term/color.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs
index a9494e7a..1cfdec6b 100644
--- a/alacritty_terminal/src/term/color.rs
+++ b/alacritty_terminal/src/term/color.rs
@@ -20,8 +20,8 @@ pub struct Rgb {
}
impl Rgb {
- /// Implementation of W3C's luminance algorithm:
- /// https://www.w3.org/TR/WCAG20/#relativeluminancedef
+ /// Implementation of W3C's luminance
+ /// [algorithm](https://www.w3.org/TR/WCAG20/#relativeluminancedef)
fn luminance(self) -> f64 {
let channel_luminance = |channel| {
let channel = channel as f64 / 255.;