diff options
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/skylark/depsets.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/site/docs/skylark/depsets.md b/site/docs/skylark/depsets.md index 0199fed9d3..570ac23211 100644 --- a/site/docs/skylark/depsets.md +++ b/site/docs/skylark/depsets.md @@ -313,16 +313,16 @@ will appear twice on the command line and twice in the contents of the output file. The next alternative is using a general set, which can be simulated by a -dictionary where the keys are the elements and all the keys map to `None`. +dictionary where the keys are the elements and all the keys map to `True`. ```python def get_transitive_srcs(srcs, deps): trans_srcs = {} for dep in deps: for file in dep[FooFiles].transitive_sources: - trans_srcs[file] = None + trans_srcs[file] = True for file in srcs: - trans_srcs[file] = None + trans_srcs[file] = True return trans_srcs ``` |