diff --git a/src/main/java/net/starlark/java/eval/StringModule.java b/src/main/java/net/starlark/java/eval/StringModule.java
index aca270d26a63f4..0b8f522575d7fd 100644
--- a/src/main/java/net/starlark/java/eval/StringModule.java
+++ b/src/main/java/net/starlark/java/eval/StringModule.java
@@ -55,7 +55,7 @@
+ "Strings are not directly iterable, use the .elems()
"
+ "method to iterate over their characters. Examples:
"
+ "
\"bc\" in \"abcd\" # evaluates to True\n" - + "x = [s for s.elems() in \"abc\"] # x == [\"a\", \"b\", \"c\"]\n" + + "x = [c for c in \"abc\".elems()] # x == [\"a\", \"b\", \"c\"]\n" + "Implicit concatenation of strings is not allowed; use the
+
"
+ "operator instead. Comparison operators perform a lexicographical comparison; "
+ "use ==
to test for equality.")