Fix short/long delimiter in string {match,replace}

- We use `()` not `[]`, as can be seen in e.g. `string split`
This commit is contained in:
Henrik Hørlück Berg 2024-07-06 16:18:14 +02:00
parent 96c5139254
commit 75da00df94
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ Synopsis
string match [-a | --all] [-e | --entire] [-i | --ignore-case]
[-g | --groups-only] [-r | --regex] [-n | --index]
[-q | --quiet] [-v | --invert] [[-m | --max-matches] MAX]
[-q | --quiet] [-v | --invert] [(-m | --max-matches) MAX]
PATTERN [STRING ...]
.. END SYNOPSIS

View file

@ -9,7 +9,7 @@ Synopsis
.. synopsis::
string replace [-a | --all] [-f | --filter] [-i | --ignore-case]
[-r | --regex] [[-m | --max-matches] MAX] [-q | --quiet]
[-r | --regex] [(-m | --max-matches) MAX] [-q | --quiet]
PATTERN REPLACEMENT [STRING ...]
.. END SYNOPSIS