diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-22 09:00:07 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-05-22 11:19:04 +0200 |
| commit | cb5319483e0691393bd3e09a808f734321a23d20 (patch) | |
| tree | 5ebbe597349918ac58ea698c7b066c2695b39b44 /compiler/rustc_const_eval/src/interpret | |
| parent | c0b4b454c3804aa1ffe8b500de87943c1f4099f7 (diff) | |
clarify comment
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operator.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operator.rs b/compiler/rustc_const_eval/src/interpret/operator.rs index 009f94538a3..6992856053a 100644 --- a/compiler/rustc_const_eval/src/interpret/operator.rs +++ b/compiler/rustc_const_eval/src/interpret/operator.rs @@ -324,7 +324,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { } } - /// Returns the result of the specified operation, and whether it overflowed. + /// Returns the result of the specified operation. + /// + /// Whether this produces a scalar or a pair depends on the specific `bin_op`. pub fn binary_op( &self, bin_op: mir::BinOp, |
