From 1efee6b1daae2b198b4d574cf4c0a8b0442f0c36 Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Sun, 26 Jan 2020 19:45:04 +0530 Subject: [PATCH] docs test expects a regex of output --- docs/v2/manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v2/manual.md b/docs/v2/manual.md index 7e07fd6..7d62546 100644 --- a/docs/v2/manual.md +++ b/docs/v2/manual.md @@ -1215,7 +1215,7 @@ Using the timestamp flag is simple, You can look at time.Parse to get layout exa ``` go package main @@ -1234,7 +1234,7 @@ func main() { &cli.TimestampFlag{Name: "meeting", Layout: "2006-01-02T15:04:05"}, }, Action: func(c *cli.Context) error { - fmt.Println(c.Timestamp("meeting").String()) + fmt.Printf("%s", c.Timestamp("meeting").String()) return nil }, }