diff --git a/website/guide/pattern-syntax.md b/website/guide/pattern-syntax.md index 66887217..8c026a9b 100644 --- a/website/guide/pattern-syntax.md +++ b/website/guide/pattern-syntax.md @@ -141,7 +141,7 @@ testFunc(1 + 1) testFunc(...args) ``` -Note in the example above, even if two meta variables have the same name `$_FUNC`, each occurrence of `$_FUNC` can match different content because the are not captured. +Note in the example above, even if two meta variables have the same name `$_FUNC`, each occurrence of `$_FUNC` can match different content because they are not captured. :::info Why use non-capturing match? This is a useful trick to micro-optimize pattern matching speed, since we don't need to create a [HashMap](https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html) for bookkeeping. @@ -165,4 +165,4 @@ Pattern can also be an object instead of string in YAML rule. It is very useful to avoid ambiguity in code snippet. See [here](/guide/rule-config/atomic-rule.html#pattern) for more details. Also see our FAQ for more [guidance](/advanced/faq.html) on writing patterns. -::: \ No newline at end of file +:::