From 9ab51c32d94c02c6a82d4ea398ec38de513e4d30 Mon Sep 17 00:00:00 2001 From: Lynn Cyrin Date: Sat, 21 Dec 2019 15:48:07 -0800 Subject: [PATCH] appease gfmrun --- docs/v2/manual.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/v2/manual.md b/docs/v2/manual.md index 0ec940f..d1cb132 100644 --- a/docs/v2/manual.md +++ b/docs/v2/manual.md @@ -649,6 +649,9 @@ does not provide a required flag, they will be shown an error message. Take for example this app that reqiures the `lang` flag: + ```go package main @@ -673,7 +676,6 @@ func main() { } app.Action = func(c *cli.Context) error { - var output string if c.String("lang") == "spanish" { output = "Hola" @@ -681,7 +683,6 @@ func main() { output = "Hello" } fmt.Println(output) - return nil }