Update rule documentation to use booleans for boolean values. RELNOTES: None. PiperOrigin-RevId: 688859329 Change-Id: Ia4410907a080760c3184455bdd8eb00ffa2cd07e
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm index 4fb6bd5..b7bf913 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm
@@ -529,7 +529,7 @@ <li> The "**" wildcard has one corner case: the pattern <code>"**"</code> doesn't match the package's directory path. That is to - say, <code>glob(["**"], exclude_directories = 0)</code> matches all files + say, <code>glob(["**"], exclude_directories = False)</code> matches all files and directories transitively strictly under the current package's directory (but of course not going into directories of subpackages - see the previous note about that).
diff --git a/src/main/starlark/builtins_bzl/common/cc/cc_import.bzl b/src/main/starlark/builtins_bzl/common/cc/cc_import.bzl index 59906c8..bf2fe27 100644 --- a/src/main/starlark/builtins_bzl/common/cc/cc_import.bzl +++ b/src/main/starlark/builtins_bzl/common/cc/cc_import.bzl
@@ -194,7 +194,7 @@ static_library = "libmylib.a", # If alwayslink is turned on, # libmylib.a will be forcely linked into any binary that depends on it. - # alwayslink = 1, + # alwayslink = True, ) </code></pre> @@ -243,7 +243,7 @@ interface_library = "libmylib.ifso", # Or we can also use libmylib.so as its own interface library # libmylib.so is provided by system environment, for example it can be found in LD_LIBRARY_PATH. # This indicates that Bazel is not responsible for making libmylib.so available. - system_provided = 1, + system_provided = True, ) </code></pre> @@ -256,7 +256,7 @@ interface_library = "mylib.lib", # mylib.dll is provided by system environment, for example it can be found in PATH. # This indicates that Bazel is not responsible for making mylib.dll available. - system_provided = 1, + system_provided = True, ) </code></pre> @@ -290,7 +290,7 @@ name = "first", srcs = ["first.cc"], deps = [":mylib"], - linkstatic = 1, # default value + linkstatic = True, # default value ) # second will link to libmylib.so (or libmylib.lib) @@ -298,7 +298,7 @@ name = "second", srcs = ["second.cc"], deps = [":mylib"], - linkstatic = 0, + linkstatic = False, ) </code></pre>