From aa33d7f84a78798c3ec0ba727df42f8f75409a4d Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 14 Oct 2024 11:50:19 -0700 Subject: [PATCH] Add missing newline in code example in string module documentation PiperOrigin-RevId: 685784112 Change-Id: I7472b8789b5d14e8f0b898ab716eb4a22103d15f --- src/main/java/net/starlark/java/eval/StringModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"