Skip to content

Commit 32b2a19

Browse files
committed
Fix inaccurate function name in rustc_const_eval docs
1 parent cd2da4d commit 32b2a19

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
@@ -485,8 +485,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
485485
Ok(OpTy { op, layout: place.layout })
486486
}
487487

488-
// Evaluate a place with the goal of reading from it. This lets us sometimes
489-
// avoid allocations.
488+
/// Evaluate a place with the goal of reading from it. This lets us sometimes
489+
/// avoid allocations.
490490
pub fn eval_place_to_op(
491491
&self,
492492
place: mir::Place<'tcx>,

compiler/rustc_const_eval/src/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ where
616616
}
617617

618618
/// Computes a place. You should only use this if you intend to write into this
619-
/// place; for reading, a more efficient alternative is `eval_place_for_read`.
619+
/// place; for reading, a more efficient alternative is [`eval_place_to_op`].
620620
pub fn eval_place(
621621
&mut self,
622622
place: mir::Place<'tcx>,

0 commit comments

Comments
 (0)