fixup docs

This commit is contained in:
Rob Ede 2021-12-02 13:14:32 +00:00
parent 5a2ba2de98
commit e760599866
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 2 deletions

View File

@ -20,12 +20,12 @@ pub enum Preference<T> {
}
impl<T> Preference<T> {
/// Returns true if the preference is the any/wildcard (`*`) value.
/// Returns true if preference is the any/wildcard (`*`) value.
pub fn is_any(&self) -> bool {
matches!(self, Self::Any)
}
/// Returns true if variant is a specific item (`T`) variant.
/// Returns true if preference is the specific item (`T`) variant.
pub fn is_specific(&self) -> bool {
matches!(self, Self::Specific(_))
}