chore: improve wording in comment

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
Nikita Revenco 2025-01-12 15:21:34 +00:00 committed by GitHub
parent 49c7844a6e
commit 5d9ce3abf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,8 @@ impl menu::Item for CompletionItem {
value, ..
}) => value,
};
// LSPs which send Color completion items include a 6 digit hex code at the end for the color. The extra 1 digit is for the '#'
// Language servers which send Color completion items tend to include a 6
// digit hex code at the end for the color. The extra 1 digit is for the '#'
text.get(text.len().checked_sub(7)?..)
})
.and_then(Color::from_hex)