From 4bef7d97a352c0b063b2532ac3056272be88c5c6 Mon Sep 17 00:00:00 2001 From: Anuj Chaudhari Date: Fri, 18 Aug 2023 15:30:42 -0700 Subject: [PATCH] Fix example for SyncPluginsForTarget in the function godoc --- plugin/sync_plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sync_plugins.go b/plugin/sync_plugins.go index b86ef574..f00d0f18 100644 --- a/plugin/sync_plugins.go +++ b/plugin/sync_plugins.go @@ -98,7 +98,7 @@ func runCommand(commandPath string, args []string, opts *cmdOptions) (bytes.Buff // // var outBuf bytes.Buffer // var errBuf bytes.Buffer -// SyncPluginsForTarget(types.TargetK8s, WithOutputWriter(outBuf), WithErrorWriter(errBuf)) +// SyncPluginsForTarget(types.TargetK8s, WithOutputWriter(&outBuf), WithErrorWriter(&errBuf)) func SyncPluginsForTarget(target types.Target, opts ...CommandOptions) (string, error) { // For now, the implementation expects env var TANZU_BIN to be set and // pointing to the core CLI binary used to invoke the plugin sync with.