bytes: articulate the doc to show results of Split() given various inputs #40490
Labels
Documentation
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
It would be nice if
bytes.Split()
documented whether it returns an empty slice as the first/last slice of subslices if the input starts with the separator sequence or ends with the separator sequence, and also what doesbytes.Split()
return given an empty input: empty slice or a slice containing a single element - an empty slice.The text was updated successfully, but these errors were encountered: