diff --git a/src/main/java/net/starlark/java/eval/StringModule.java b/src/main/java/net/starlark/java/eval/StringModule.java index 7e296458ab85f1..0eead4d1a2be20 100644 --- a/src/main/java/net/starlark/java/eval/StringModule.java +++ b/src/main/java/net/starlark/java/eval/StringModule.java @@ -48,7 +48,7 @@ + "# Strings support slicing (negative index starts from the end):\n" + "x = \"hello\"[2:4] # \"ll\"\n" + "y = \"hello\"[1:-1] # \"ell\"\n" - + "z = \"hello\"[:4] # \"hell\"" + + "z = \"hello\"[:4] # \"hell\"\n" + "# Slice steps can be used, too:\n" + "s = \"hello\"[::2] # \"hlo\"\n" + "t = \"hello\"[3:0:-1] # \"lle\"\n"