Skip to content

Commit d549576

Browse files
RalfJungscottmcm
andauthored
clarify comment
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
1 parent c0b4b45 commit d549576

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: compiler/rustc_const_eval/src/interpret/operator.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
324324
}
325325
}
326326

327-
/// Returns the result of the specified operation, and whether it overflowed.
327+
/// Returns the result of the specified operation.
328+
///
329+
/// Whether this produces a scalar or a pair depends on the specific `bin_op`.
328330
pub fn binary_op(
329331
&self,
330332
bin_op: mir::BinOp,

0 commit comments

Comments
 (0)