Skip to content

Commit 58ecec3

Browse files
brentleyjonesfmeum
andauthored
Improve documentation for select() (bazelbuild#14769)
* Reference documentation that explains when to use Label rather than a label string. * Remove mention of constraint_settings as they can't be used as select keys. Closes bazelbuild#14458. PiperOrigin-RevId: 420129541 (cherry picked from commit 67a133b) Co-authored-by: Fabian Meumertzheim <[email protected]>
1 parent 0df1851 commit 58ecec3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ public Depset depset(
332332
doc =
333333
"A dict that maps configuration conditions to values. Each key is a "
334334
+ "<a href=\"$BE_ROOT/../skylark/lib/Label.html\">Label</a> or a label string"
335-
+ " that identifies a config_setting, constraint_setting, or constraint_value"
336-
+ " instance."),
335+
+ " that identifies a config_setting or constraint_value instance. See the"
336+
+ " <a href=\"$BE_ROOT/../skylark/macros.html#label-resolution-in-macros\">"
337+
+ "documentation on macros</a> for when to use a Label instead of a string."),
337338
@Param(
338339
name = "no_match_error",
339340
defaultValue = "''",

0 commit comments

Comments
 (0)