mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-23 05:13:00 -05:00
fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package strhelp
|
||||
|
||||
// NthToken returns the Nth token in s, delimited by delim. There is always at least one token: the zeroth token is the
|
||||
// input string if delim doesn't occur in s. The second return value will be false if there is no Nth token.
|
||||
func NthToken(s string, delim rune, n int) (string, bool) {
|
||||
if n < 0 {
|
||||
panic("invalid arguments.")
|
||||
|
||||
Reference in New Issue
Block a user