Skip to content

Commit 17cdc14

Browse files
committed
fix: use integer suffixes
1 parent f3f6b79 commit 17cdc14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bzl_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def bzl_library(name, srcs = [], deps = [], **kwargs):
4848
**kwargs
4949
)
5050

51-
for src in srcs:
51+
for i, src in enumerate(srcs):
5252
native.starlark_doc_extract(
53-
name = "{}.doc_extract{}".format(name, "_" + src if len(srcs) > 1 else ""),
53+
name = "{}.doc_extract{}".format(name, i if i > 0 else ""),
5454
src = src,
5555
deps = deps,
5656
)

0 commit comments

Comments
 (0)