Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
sydnash committed May 26, 2017
1 parent 3f93f8e commit 66e71a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func isEqual(d1, d2 interface{}) bool {
}
}

func (v *Vector) IndexOf(d interface{}) {
func (v *Vector) IndexOf(d interface{}) int {
for i, t := range v.s {
if isEqual(t, d) {
return i
Expand Down

0 comments on commit 66e71a2

Please sign in to comment.