Skip to content

Commit

Permalink
Tweak matches docs
Browse files Browse the repository at this point in the history
Clarifies #129
  • Loading branch information
mwillsey committed Jul 8, 2024
1 parent ae2db37 commit 7112033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ pub trait Language: Debug + Clone + Eq + Ord + Hash {
fn discriminant(&self) -> Self::Discriminant;

/// Returns true if this enode matches another enode.
/// This should only consider the operator, not the children `Id`s.
/// This should only consider the operator and the arity,
/// not the children `Id`s.
fn matches(&self, other: &Self) -> bool;

/// Returns the children of this e-node.
Expand Down

0 comments on commit 7112033

Please sign in to comment.