diff --git a/test/testdata/config_apis_test/golden.md b/test/testdata/config_apis_test/golden.md
index 4e637726..b2129524 100755
--- a/test/testdata/config_apis_test/golden.md
+++ b/test/testdata/config_apis_test/golden.md
@@ -10,7 +10,7 @@
int_setting(name)
-
+An integer flag.
**ATTRIBUTES**
@@ -28,7 +28,7 @@ int_setting(name)
string_flag(name)
-
+A string flag.
**ATTRIBUTES**
diff --git a/test/testdata/config_apis_test/input.bzl b/test/testdata/config_apis_test/input.bzl
index 5519711a..9d871b8b 100644
--- a/test/testdata/config_apis_test/input.bzl
+++ b/test/testdata/config_apis_test/input.bzl
@@ -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),
)