From e529754f9695a7cf8c1e288138618444a8ad33b2 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 2 Aug 2020 10:20:54 +0200 Subject: [PATCH] examples.md: Actually use `ctx` variable in Go example "List and manage containers" Go example: `ctx := context.Background()` was defined but never used. Follow the structure of the other examples instead. --- engine/api/sdk/examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/api/sdk/examples.md b/engine/api/sdk/examples.md index 212de2916c..d658137c25 100644 --- a/engine/api/sdk/examples.md +++ b/engine/api/sdk/examples.md @@ -245,7 +245,7 @@ func main() { panic(err) } - containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) + containers, err := cli.ContainerList(ctx, types.ContainerListOptions{}) if err != nil { panic(err) }