Skip to content

Commit d972b07

Browse files
committed
Fixed method comment
1 parent f9860d0 commit d972b07

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

vm/src/vm.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -459,16 +459,16 @@ impl VirtualMachine {
459459
///
460460
/// * `a` - First argument.
461461
/// * `b` - Second argument.
462-
/// * `d` - Default method to try and call (such as `__sub__`).
463-
/// * `r` - Reverse method to try and call (such as `__rsub__`), in case first one fails.
464-
/// * `op` - Operator for the exception text, for example `-`.
462+
/// * `d` - Default method to try and call (such as `__and__`).
463+
/// * `r` - Reverse method to try and call (such as `__rand__`), in case first one fails.
464+
/// * `op` - Operator for the exception text, for example `&`.
465465
///
466466
/// Given the above example, it will
467-
/// 1. Try to call `__sub__` with `a` and `b`
468-
/// 2. If above fails try to call `__rsub__` with `a` and `b`
467+
/// 1. Try to call `__and__` with `a` and `b`
468+
/// 2. If above fails try to call `__rand__` with `a` and `b`
469469
/// 3. If above fails throw an exception:
470-
/// `Unsupported operand types for '-': 'int' and 'float'`
471-
/// if `a` is of type int and `b` of type float
470+
/// `TypeError: Unsupported operand types for '&': 'float' and 'int'`
471+
/// if `a` is of type float and `b` of type int
472472
///
473473
pub fn call_or_unsupported(
474474
&mut self,

0 commit comments

Comments
 (0)