docs: fix incorrect generated code in example (#277)

Should be "return foobarbaz.Baz{}, err"
This commit is contained in:
kzh125
2021-01-26 09:57:54 +08:00
committed by GitHub
parent a58291c0b8
commit 0ac845078c

View File

@@ -165,7 +165,7 @@ func initializeBaz(ctx context.Context) (foobarbaz.Baz, error) {
bar := foobarbaz.ProvideBar(foo)
baz, err := foobarbaz.ProvideBaz(ctx, bar)
if err != nil {
return 0, err
return foobarbaz.Baz{}, err
}
return baz, nil
}