diff --git a/cmd/gcd.go b/cmd/gcd.go index 854007b..cf95851 100644 --- a/cmd/gcd.go +++ b/cmd/gcd.go @@ -27,11 +27,11 @@ import ( var extended bool func computeBezouts(bezouts []big.Int, x, y *big.Int) { - for i, c := range bezouts { + for i, b := range bezouts { if i == len(bezouts)-1 { bezouts[i].Set(y) } else { - bezouts[i].Mul(&c, x) + bezouts[i].Mul(&b, x) } } } @@ -59,8 +59,8 @@ func gcd(cmd *cobra.Command, args []string) { fmt.Print(z) if extended { - for _, c := range bezouts { - fmt.Printf(" %s", &c) + for _, b := range bezouts { + fmt.Printf(" %s", &b) } } fmt.Println()