Skip to content

Commit

Permalink
Add docstring to a build_setting rule (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiuto authored Feb 9, 2022
1 parent f4d4b3a commit 6c6cfa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testdata/config_apis_test/golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
int_setting(<a href="#int_setting-name">name</a>)
</pre>


An integer flag.

**ATTRIBUTES**

Expand All @@ -28,7 +28,7 @@ int_setting(<a href="#int_setting-name">name</a>)
string_flag(<a href="#string_flag-name">name</a>)
</pre>


A string flag.

**ATTRIBUTES**

Expand Down
2 changes: 2 additions & 0 deletions test/testdata/config_apis_test/input.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ def _build_setting_impl(ctx):
return []

string_flag = rule(
doc = "A string flag.",
implementation = _build_setting_impl,
build_setting = config.string(flag = True),
)

int_setting = rule(
doc = "An integer flag.",
implementation = _build_setting_impl,
build_setting = config.int(flag = False),
)

0 comments on commit 6c6cfa2

Please sign in to comment.