Skip to content

Commit

Permalink
Fixed an incorrect variable being used
Browse files Browse the repository at this point in the history
  • Loading branch information
DevReaper0 committed Dec 1, 2023
1 parent 25477cb commit 991ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/env/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def builtin_object_patch(arguments):
interpreter.error(this_object, ErrorType.TypeError, 'Cannot patch non-BasicObject value: {}'.format(target))
return None

if not isinstance(target, BasicObject):
if not isinstance(patch, BasicObject):
interpreter.error(this_object, ErrorType.TypeError, 'Cannot patch object with non-BasicObject value: {}'.format(patch))
return None

Expand Down

0 comments on commit 991ce40

Please sign in to comment.