Rename the builtin kind from generator to sample
Tests / vet + fmt + tests (pull_request) Successful in 32s

This commit is contained in:
2026-09-01 21:41:35 +02:00
parent 04b7b6a432
commit 5d33f4c0f0
5 changed files with 30 additions and 29 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ func digitsOnly(s string) string {
}
// luhnValid verifies a full number (payload + trailing check digit). It doubles
// from the second-from-right, independent of the generator's own Luhn code.
// from the second-from-right, independent of the builtin's own Luhn code.
func luhnValid(s string) bool {
sum, double := 0, false
for i := len(s) - 1; i >= 0; i-- {