fix documentation for nextPermutation and nextEvenPermutation
Merge pull request #1822 from GassaFM/master

fix documentation for nextPermutation and nextEvenPermutation
Fix Issue 6730
Merge pull request #1823 from andralex/6730

Fix Issue 6730