Skip to content

Commit f1f0734

Browse files
committed
Fix inaccurate function name in rustc_const_eval docs
1 parent e209e85 commit f1f0734

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_const_eval/src/interpret/operand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
520520
Ok(OpTy { op, layout: place.layout })
521521
}
522522

523-
// Evaluate a place with the goal of reading from it. This lets us sometimes
524-
// avoid allocations.
523+
/// Evaluate a place with the goal of reading from it. This lets us sometimes
524+
/// avoid allocations.
525525
pub fn eval_place_to_op(
526526
&self,
527527
place: mir::Place<'tcx>,

compiler/rustc_const_eval/src/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ where
625625
}
626626

627627
/// Computes a place. You should only use this if you intend to write into this
628-
/// place; for reading, a more efficient alternative is `eval_place_for_read`.
628+
/// place; for reading, a more efficient alternative is `eval_place_to_op`.
629629
#[instrument(skip(self), level = "debug")]
630630
pub fn eval_place(
631631
&mut self,

0 commit comments

Comments
 (0)