From 6e162f63334b7605344b34e8c101b8ee2ce4561a Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Mon, 28 Oct 2024 08:44:30 +0100 Subject: [PATCH] docs: fix some comments --- lib/src/compiler/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/src/compiler/mod.rs b/lib/src/compiler/mod.rs index ce8e0ea2f..75564e1d7 100644 --- a/lib/src/compiler/mod.rs +++ b/lib/src/compiler/mod.rs @@ -1177,14 +1177,15 @@ impl<'a> Compiler<'a> { // following cases: // // 1) When the pattern is anchored, because anchored pattern can appear - // only at a fixed pattern and are not searched by Aho-Corasick. + // only at a fixed offset and are not searched by Aho-Corasick. + // // 2) When the pattern has attributes: xor, fullword, base64 or // base64wide, because in those cases the real pattern is not that // common. // - // Note: this can't be done before calling `bool_expr_from_ast`, because - // we don't know which patterns are anchored until the condition is - // processed. + // Note: this can't be done before calling `rule_condition_from_ast`, + // because we don't know which patterns are anchored until the condition + // is processed. for pat in rule_patterns.iter() { if pat.anchored_at().is_none() && !pat.pattern().flags().intersects(