Skip to content

Commit

Permalink
protogen: update Options documentation. protogen.Run doesn't exist.
Browse files Browse the repository at this point in the history
Change-Id: Iff653cd5b6a7d98ce7e3ead0877cba7b996e9c13
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/574836
Reviewed-by: Lasse Folger <lassefolger@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
Clement-Jean authored and gopherbot committed Mar 28, 2024
1 parent 4fd828f commit 3797f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/protogen/protogen.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ type Options struct {
// opts := &protogen.Options{
// ParamFunc: flags.Set,
// }
// protogen.Run(opts, func(p *protogen.Plugin) error {
// opts.Run(func(p *protogen.Plugin) error {
// if *value { ... }
// })
ParamFunc func(name, value string) error
Expand Down

0 comments on commit 3797f00

Please sign in to comment.