Skip to content

Commit bb7262e

Browse files
authored
Fix typo in pattern-syntax.md (#712)
1 parent 4e3f54f commit bb7262e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/guide/pattern-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ testFunc(1 + 1)
141141
testFunc(...args)
142142
```
143143

144-
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.
144+
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.
145145

146146
:::info Why use non-capturing match?
147147
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.
165165
It is very useful to avoid ambiguity in code snippet. See [here](/guide/rule-config/atomic-rule.html#pattern) for more details.
166166

167167
Also see our FAQ for more [guidance](/advanced/faq.html) on writing patterns.
168-
:::
168+
:::

0 commit comments

Comments
 (0)