Skip to content

Commit b2aa6e4

Browse files
committed
Fix problems noted by go vet
1 parent 46bb245 commit b2aa6e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/arithmetic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func Mod(a, b Object) Object {
357357
}
358358

359359
// FIXME should be TypeError
360-
panic(fmt.Sprintf("TypeError: unsupported operand type(s) for %: '%s' and '%s'", a.Type().Name, b.Type().Name))
360+
panic(fmt.Sprintf("TypeError: unsupported operand type(s) for %%: '%s' and '%s'", a.Type().Name, b.Type().Name))
361361
}
362362

363363
// Inplace mod

py/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var data = Data{
4848
{Name: "mul", Title: "Mul", Operator: "*", Binary: true},
4949
{Name: "truediv", Title: "TrueDiv", Operator: "/", Binary: true},
5050
{Name: "floordiv", Title: "FloorDiv", Operator: "//", Binary: true},
51-
{Name: "mod", Title: "Mod", Operator: "%", Binary: true},
51+
{Name: "mod", Title: "Mod", Operator: "%%", Binary: true},
5252
{Name: "divmod", Title: "DivMod", Operator: "divmod", Binary: true, TwoReturnParameters: true, NoInplace: true},
5353
{Name: "lshift", Title: "Lshift", Operator: "<<", Binary: true},
5454
{Name: "rshift", Title: "Rshift", Operator: ">>", Binary: true},

0 commit comments

Comments
 (0)