fixed bug in String

pull/14/merge
Mat Ryer 2013-04-30 10:40:31 -06:00
parent 87ce1d3239
commit d6863491da
1 changed files with 3 additions and 2 deletions

View File

@ -421,10 +421,11 @@ func (args Arguments) String(indexOrNil ...int) string {
panic(fmt.Sprintf("assert: arguments: String(%d) failed because object wasn't correct type: %s", index, args.Get(index)))
}
return s
} else {
panic(fmt.Sprintf("assert: arguments: Wrong number of arguments passed to String. Must be 0 or 1, not %d", len(indexOrNil)))
}
panic(fmt.Sprintf("assert: arguments: Wrong number of arguments passed to String. Must be 0 or 1, not %d", len(indexOrNil)))
return ""
}
// Int gets the argument at the specified index. Panics if there is no argument, or