Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
Running example as is fails with: type 'depset' is not iterable

Closes #10333.

PiperOrigin-RevId: 283332651
  • Loading branch information
spudtrooper authored and copybara-github committed Dec 2, 2019
1 parent eb3fc09 commit 84b29c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/skylark/aspects.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _print_aspect_impl(target, ctx):
# Iterate through the files that make up the sources and
# print their paths.
for src in ctx.rule.attr.srcs:
for f in src.files:
for f in src.files.to_list():
print(f.path)
return []

Expand Down

0 comments on commit 84b29c9

Please sign in to comment.