diff options
author | Ikko Eltociear Ashimine <eltociear@gmail.com> | 2023-12-30 18:05:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 17:05:55 +0800 |
commit | b92163180d94d31e2027f57de6656dca1b42cbd3 (patch) | |
tree | 9b6daa3c26261fdab7fcb81d1aa887e900c5320b | |
parent | fd253a08b1a58816d3224d3b91603c37232897b5 (diff) | |
download | Nim-b92163180d94d31e2027f57de6656dca1b42cbd3.tar.gz |
Fix typo in pegs.nim (#23143)
wether -> whether
-rw-r--r-- | lib/pure/pegs.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index d0c449bdd..935cea5e6 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -314,21 +314,21 @@ func capture*(a: Peg = Peg(kind: pkEmpty)): Peg {.rtl, extern: "npegsCapture".} func backref*(index: range[1..MaxSubpatterns], reverse: bool = false): Peg {. rtl, extern: "npegs$1".} = ## constructs a back reference of the given `index`. `index` starts counting - ## from 1. `reverse` specifies wether indexing starts from the end of the + ## from 1. `reverse` specifies whether indexing starts from the end of the ## capture list. result = Peg(kind: pkBackRef, index: (if reverse: -index else: index - 1)) func backrefIgnoreCase*(index: range[1..MaxSubpatterns], reverse: bool = false): Peg {. rtl, extern: "npegs$1".} = ## constructs a back reference of the given `index`. `index` starts counting - ## from 1. `reverse` specifies wether indexing starts from the end of the + ## from 1. `reverse` specifies whether indexing starts from the end of the ## capture list. Ignores case for matching. result = Peg(kind: pkBackRefIgnoreCase, index: (if reverse: -index else: index - 1)) func backrefIgnoreStyle*(index: range[1..MaxSubpatterns], reverse: bool = false): Peg {. rtl, extern: "npegs$1".} = ## constructs a back reference of the given `index`. `index` starts counting - ## from 1. `reverse` specifies wether indexing starts from the end of the + ## from 1. `reverse` specifies whether indexing starts from the end of the ## capture list. Ignores style for matching. result = Peg(kind: pkBackRefIgnoreStyle, index: (if reverse: -index else: index - 1)) |