Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fischor committed Nov 20, 2023
1 parent e458cbc commit 5c5d911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/protoc-gen-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protogen.Options(...).run(_generate)

The import will cause the registration of the extension in the proto type registry of the offical `protobuf` lib.
With that the extension values can be accessed by the plugin.
Each options added to a proto Method will be present as a field its `Method.proto.options`.
Each option added to a proto Method will be present as a field its `Method.proto.options`.
Each `Method.proto.option` has a `number` field that corresponds to the field number that was assigned to the extension.
This way one can identify to which extension a `Method.proto.option` belongs.
See (Line 24 and 25)[./samples/protoc-gen-extensions/plugin.py#L24-L25] in the example plugin.
Expand Down

0 comments on commit 5c5d911

Please # to comment.