Commit 67d7e69
Fabrice Vaillant
Favor strings.Cut to strings.SplitN
It is more efficient since it does not allocate an array and just return
s if nothing found
For the same reason we don't need to use strings.Cut at all if empty1 parent 8508981 commit 67d7e69
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
1362 | 1361 | | |
| 1362 | + | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
| |||
0 commit comments