Skip to content

Commit 28b1e9b

Browse files
committed
docs: correct README.md example
1 parent 5bb14dc commit 28b1e9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def generate(gen: protogen.Plugin):
3838
)
3939
g.P("# Generated code ahead.")
4040
g.P()
41-
g.print_imports()
41+
g.print_import()
4242
g.P()
43-
for m in f.message:
43+
for m in f.messages:
4444
g.P("class ", m.py_ident, ":")
4545
for ff in m.fields:
4646
# ...
@@ -163,7 +163,7 @@ Assume you have an executable plugin under `path/to/plugin/main.py`.
163163
You can invoke it via:
164164

165165
```
166-
protoc
166+
protoc \
167167
--plugin=protoc-gen-myplugin=path/to/plugin/main.py \
168168
--myplugin_out=./output_root \
169169
myproto.proto myproto2.proto

0 commit comments

Comments
 (0)