fix: correct comment
This commit is contained in:
committed by
GitHub
parent
676027caf6
commit
2e2320ec73
@@ -527,7 +527,7 @@ func RightPad(str string, length int, pad string) string {
|
|||||||
return str + times(pad, length-len(str))
|
return str + times(pad, length-len(str))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shift removes the first and returns that entry as well as the rest of the list
|
// ShiftString removes the first and returns that entry as well as the rest of the list
|
||||||
func ShiftString(a []string) (string, []string) {
|
func ShiftString(a []string) (string, []string) {
|
||||||
if len(a) == 0 {
|
if len(a) == 0 {
|
||||||
return "", a
|
return "", a
|
||||||
|
|||||||
Reference in New Issue
Block a user