fmt code (#270)
This commit is contained in:
@@ -19,10 +19,11 @@ func Untitle(s string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Index(slice []string, item string) int {
|
func Index(slice []string, item string) int {
|
||||||
for i, _ := range slice {
|
for i := range slice {
|
||||||
if slice[i] == item {
|
if slice[i] == item {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user