Skip to content

Commit

Permalink
docs: correct README.md example
Browse files Browse the repository at this point in the history
  • Loading branch information
fischor committed Nov 21, 2023
1 parent 5bb14dc commit 28b1e9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def generate(gen: protogen.Plugin):
)
g.P("# Generated code ahead.")
g.P()
g.print_imports()
g.print_import()
g.P()
for m in f.message:
for m in f.messages:
g.P("class ", m.py_ident, ":")
for ff in m.fields:
# ...
Expand Down Expand Up @@ -163,7 +163,7 @@ Assume you have an executable plugin under `path/to/plugin/main.py`.
You can invoke it via:

```
protoc
protoc \
--plugin=protoc-gen-myplugin=path/to/plugin/main.py \
--myplugin_out=./output_root \
myproto.proto myproto2.proto
Expand Down

0 comments on commit 28b1e9b

Please # to comment.