File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -459,16 +459,16 @@ impl VirtualMachine {
459
459
///
460
460
/// * `a` - First argument.
461
461
/// * `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 `& `.
465
465
///
466
466
/// 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`
469
469
/// 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
472
472
///
473
473
pub fn call_or_unsupported (
474
474
& mut self ,
You can’t perform that action at this time.
0 commit comments