nimgrep: fix typo (#21337)

occurences -> occurrences
This commit is contained in:
Ikko Eltociear Ashimine 2023-02-07 17:15:44 +09:00 • committed by GitHub
commit 9f651f05d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ That means you can always use only 1 such an option with logical OR, e.g.
.. Note::
If you want logical AND on patterns you should compose 1 appropriate pattern,
possibly combined with multi-line mode `(?s)`:literal:.
E.g. to require that multi-line context of matches has occurences of
E.g. to require that multi-line context of matches has occurrences of
**both** PAT1 and PAT2 use positive lookaheads (`(?=PAT)`:literal:):
```cmd
nimgrep --inContext:'(?s)(?=.*PAT1)(?=.*PAT2)'