char mins done; need to shuffle some error condition checks before
This commit is contained in:
@@ -82,11 +82,7 @@ func (c *CharSet) String() (s string) {
|
||||
// Swap will swap the position of the item at index i and the item at index j in a CharSet (needed for sort.Interface).
|
||||
func (c *CharSet) Swap(i, j int) {
|
||||
|
||||
var iVal Char = (*c)[i]
|
||||
var jVal Char = (*c)[j]
|
||||
|
||||
(*c)[i] = jVal
|
||||
(*c)[j] = iVal
|
||||
(*c)[j], (*c)[i] = (*c)[i], (*c)[j]
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user