Skip to content

Commit

Permalink
docs: fix incorrect generated code in example (#277)
Browse files Browse the repository at this point in the history
Should be "return foobarbaz.Baz{}, err"
  • Loading branch information
kzh125 authored Jan 26, 2021
1 parent a58291c commit 0ac8450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0ac8450

Please sign in to comment.