fix some typos in comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
229e875878
commit
442f848d74
13 changed files with 15 additions and 15 deletions
|
@ -1541,7 +1541,7 @@ impl<'tcx> Place<'tcx> {
|
|||
/// If MirPhase >= Derefered and if projection contains Deref,
|
||||
/// It's guaranteed to be in the first place
|
||||
pub fn has_deref(&self) -> bool {
|
||||
// To make sure this is not accidently used in wrong mir phase
|
||||
// To make sure this is not accidentally used in wrong mir phase
|
||||
debug_assert!(
|
||||
self.projection.is_empty() || !self.projection[1..].contains(&PlaceElem::Deref)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue