diff --git a/src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java b/src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java
index 6c9025e81923b9..10566e409bc76e 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/StarlarkLibrary.java
@@ -332,8 +332,9 @@ public Depset depset(
doc =
"A dict that maps configuration conditions to values. Each key is a "
+ "Label or a label string"
- + " that identifies a config_setting, constraint_setting, or constraint_value"
- + " instance."),
+ + " that identifies a config_setting or constraint_value instance. See the"
+ + " "
+ + "documentation on macros for when to use a Label instead of a string."),
@Param(
name = "no_match_error",
defaultValue = "''",