Incorrect description in string.split

The paragraph describing corner cases with empty slices is incorrect:

 Empty Slices
 
 	"foo,,bar" --> "foo", "", "bar"
-	",foo" --> "foo" ,""
-	"foo," --> "", "foo"
+	",foo" --> "", "foo"
+	"foo," --> "foo", ""
 	"," --> "", ""
 	",," --> "", "", ""
4 Likes

Hey, thanks for this - reported to the team.

2 Likes

This should be fixed very soon, thank you for the correction!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.