Skip to content

Commit

Permalink
Add missing newline in code example in string module documentation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 685784112
Change-Id: I7472b8789b5d14e8f0b898ab716eb4a22103d15f
  • Loading branch information
Googler authored and copybara-github committed Oct 14, 2024
1 parent 9d50078 commit aa33d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/starlark/java/eval/StringModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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</pre>"
Expand Down

0 comments on commit aa33d7f

Please sign in to comment.