fix some typos (#78)
This commit is contained in:
parent
18131c10ad
commit
343c7124a4
@ -115,7 +115,7 @@ impl ListSeparator {
|
||||
|
||||
/// In Sass, underscores and hyphens are considered equal when inside identifiers.
|
||||
///
|
||||
/// This struct protects that invariant by normalizing all underscores into hypens.
|
||||
/// This struct protects that invariant by normalizing all underscores into hyphens.
|
||||
#[derive(Clone, Eq, PartialEq, Hash, PartialOrd, Ord, Copy)]
|
||||
pub struct Identifier(InternedString);
|
||||
|
||||
|
@ -144,7 +144,7 @@ pub(crate) fn add(left: Value, right: Value, options: &Options, span: Span) -> S
|
||||
}
|
||||
},
|
||||
c @ Value::Color(..) => match right {
|
||||
// todo: we really cant add to any other types?
|
||||
// todo: we really can't add to any other types?
|
||||
Value::String(..) | Value::Null | Value::List(..) => Value::String(
|
||||
format!(
|
||||
"{}{}",
|
||||
|
@ -62,7 +62,7 @@ impl ExtendedSelector {
|
||||
/// for this yet (we can't just use a `Vec` because linear insert)
|
||||
/// is too big of a penalty
|
||||
///
|
||||
/// In pratice, I have yet to find a test case that can demonstrate
|
||||
/// In practice, I have yet to find a test case that can demonstrate
|
||||
/// an issue with storing a `RefCell`.
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct SelectorHashSet(HashSet<ExtendedSelector>);
|
||||
|
@ -1149,7 +1149,7 @@ impl ExtensionStore {
|
||||
|
||||
*/
|
||||
|
||||
// If no extends actually happened (for example becaues unification
|
||||
// If no extends actually happened (for example because unification
|
||||
// failed), we don't need to re-register the selector.
|
||||
let selector_as_selector = selector.clone().into_selector().0;
|
||||
if old_value == selector_as_selector {
|
||||
|
@ -190,7 +190,7 @@ impl SimpleSelector {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the compoments of a `CompoundSelector` that matches only elements
|
||||
/// Returns the components of a `CompoundSelector` that matches only elements
|
||||
/// matched by both this and `compound`.
|
||||
///
|
||||
/// By default, this just returns a copy of `compound` with this selector
|
||||
|
Loading…
x
Reference in New Issue
Block a user