From d59db60c8cc4bd65287e74887cf18bed44d6873a Mon Sep 17 00:00:00 2001 From: Amarjit Singh <118879833+amarjit03@users.noreply.github.com> Date: Sat, 28 Jun 2025 14:21:05 +0530 Subject: [PATCH 1/2] Fix typos in documentation for customizations and full API example --- docs/v3/examples/completions/customizations.md | 2 +- docs/v3/examples/full-api-example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v3/examples/completions/customizations.md b/docs/v3/examples/completions/customizations.md index 06cbd67b84..183f3d8250 100644 --- a/docs/v3/examples/completions/customizations.md +++ b/docs/v3/examples/completions/customizations.md @@ -5,7 +5,7 @@ search: boost: 2 --- -If default completion isnt sufficient additional customizations are available +If default completion isn't sufficient additional customizations are available - custom auto-completion - customizing completion command diff --git a/docs/v3/examples/full-api-example.md b/docs/v3/examples/full-api-example.md index d582fd6b63..fb574141ae 100644 --- a/docs/v3/examples/full-api-example.md +++ b/docs/v3/examples/full-api-example.md @@ -144,7 +144,7 @@ func main() { &cli.FloatFlag{Name: "howmuch"}, &cli.IntFlag{Name: "longdistance", Validator: func (t int) error { if t < 10 { - return fmt.Errorf("10 miles isnt long distance!!!!") + return fmt.Errorf("10 miles isn't long distance!!!!") } return nil }}, From c3c95e251526491d09cca80dc452af835f350bca Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Sun, 13 Jul 2025 20:44:03 +0200 Subject: [PATCH 2/2] Update advanced.md Add missing dots --- docs/v3/examples/arguments/advanced.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/v3/examples/arguments/advanced.md b/docs/v3/examples/arguments/advanced.md index bfc96d4a8f..2c1945232f 100644 --- a/docs/v3/examples/arguments/advanced.md +++ b/docs/v3/examples/arguments/advanced.md @@ -7,7 +7,7 @@ search: The [Basics] showed how to access arguments for a command. They are all retrieved as strings which is fine but it we need to say get integers or timestamps the user would have to convert from string to desired type. -To ease the burden on users the `cli` library offers predefined `{Type}Arg` and `{Type}Args` structure to faciliate this +To ease the burden on users the `cli` library offers predefined `{Type}Arg` and `{Type}Args` structure to faciliate this. The value of the argument can be retrieved using the `command.{Type}Arg()` function. For e.g