mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
cmd/utils: improve documentation for SplitAndTrim
This commit is contained in:
parent
ac406c2fe7
commit
09e6c88a55
1 changed files with 2 additions and 2 deletions
|
|
@ -1278,8 +1278,8 @@ func setNAT(ctx *cli.Context, cfg *p2p.Config) {
|
|||
}
|
||||
}
|
||||
|
||||
// SplitAndTrim splits input separated by a comma
|
||||
// and trims excessive white space from the substrings.
|
||||
// SplitAndTrim splits a comma-separated string into substrings,
|
||||
// trims surrounding whitespace, and returns only non-empty strings.
|
||||
func SplitAndTrim(input string) (ret []string) {
|
||||
l := strings.Split(input, ",")
|
||||
for _, r := range l {
|
||||
|
|
|
|||
Loading…
Reference in a new issue