aboutsummaryrefslogtreecommitdiff
path: root/src/rule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.rs')
-rw-r--r--src/rule.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rule.rs b/src/rule.rs
index c8cb90d..8d9dfd5 100644
--- a/src/rule.rs
+++ b/src/rule.rs
@@ -113,7 +113,7 @@ impl Rule {
}
}
- /// Retrieves an iterator to loop over the expressions of the rule
+ /// Retrieves an iterator to loop over the expressions of the rule.
pub fn get_exprs(self: &Rc<Self>) -> RuleExprsIter {
RuleExprsIter::new(self.clone())
}
@@ -130,12 +130,12 @@ impl Rule {
self.rule
}
- /// Perform a deep comparizon of rules, by checking they have the same expressions inside.
- /// This is not enabled by default in our PartialEq implementation because of the
- /// difficulty to compare an expression generated by the library with the expressions returned
- /// by the kernel when iterating over the currently in-use rules. The kernel-returned
- /// expressions may have additional attributes despite being generated from the same rule.
- /// This is particularly true for the 'nat' expression).
+ /// Performs a deep comparizon of rules, by checking they have the same expressions inside.
+ /// This is not enabled by default in our PartialEq implementation because of the difficulty to
+ /// compare an expression generated by the library with the expressions returned by the kernel
+ /// when iterating over the currently in-use rules. The kernel-returned expressions may have
+ /// additional attributes despite being generated from the same rule. This is particularly true
+ /// for the 'nat' expression).
pub fn deep_eq(&self, other: &Self) -> bool {
if self != other {
return false;