Skip to content

Commit bc1d31c

Browse files
comiuscopybara-github
authored andcommitted
Fix docstring in proto_common
PiperOrigin-RevId: 445149402
1 parent 5343d7c commit bc1d31c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/main/starlark/builtins_bzl/common/proto/proto_common.bzl

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ def _compile(
117117
of the command line.
118118
additional_tools: (list[File]) Additional tools to add to the action.
119119
additional_inputs: (Depset[File]) Additional input files to add to the action.
120-
resource_set:
121-
(func) A callback function that is passed to the created action.
120+
resource_set: (func) A callback function that is passed to the created action.
122121
See `ctx.actions.run`, `resource_set` parameter for full definition of
123122
the callback.
124123
experimental_progress_message: Overrides progres_message from the toolchain.
@@ -212,11 +211,9 @@ def _experimental_should_generate_code(
212211
shouldn't generate code.
213212
214213
Args:
215-
proto_library_target:
216-
(Target) The proto_library to generate the sources for.
214+
proto_library_target: (Target) The proto_library to generate the sources for.
217215
Obtained as the `target` parameter from an aspect's implementation.
218-
proto_lang_toolchain_info:
219-
(ProtoLangToolchainInfo) The proto lang toolchain info.
216+
proto_lang_toolchain_info: (ProtoLangToolchainInfo) The proto lang toolchain info.
220217
Obtained from a `proto_lang_toolchain` target or constructed ad-hoc.
221218
rule_name: (str) Name of the rule used in the failure message.
222219
@@ -252,10 +249,8 @@ def _declare_generated_files(
252249
declares new output files.
253250
254251
Args:
255-
actions:
256-
(ActionFactory) Obtained by ctx.actions, used to declare the files.
257-
proto_library_target:
258-
(Target) The proto_library to generate the files for.
252+
actions: (ActionFactory) Obtained by ctx.actions, used to declare the files.
253+
proto_library_target: (Target) The proto_library to generate the files for.
259254
Obtained as the `target` parameter from an aspect's implementation.
260255
extension: (str) The extension to use for generated files.
261256
name_mapper: (str->str) A function mapped over the base filename without

0 commit comments

Comments
 (0)