mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
stat/combin: Fix CombinationGenerator comment (#1028)
It's confusing to say that Combination generates the next combination, when really it generates the current one with Next doing the advancing.
This commit is contained in:
@@ -119,7 +119,7 @@ func (c *CombinationGenerator) Next() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Combination generates the next combination. If next is non-nil, it must have
|
||||
// Combination generates the current combination. If next is non-nil, it must have
|
||||
// length k and the result will be stored in-place into combination. If combination
|
||||
// is nil a new slice will be allocated and returned. If all of the combinations
|
||||
// have already been constructed (Next() returns false), Combination will panic.
|
||||
|
Reference in New Issue
Block a user