Skip to content

Commit 520876b

Browse files
Rollup merge of #78494 - bugadani:typo2, r=jonas-schievink
Fix typos
2 parents 400c486 + 0fabbf9 commit 520876b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_mir/src/dataflow/impls/borrows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'a, 'tcx> Borrows<'a, 'tcx> {
177177
//
178178
// We are careful always to call this function *before* we
179179
// set up the gen-bits for the statement or
180-
// termanator. That way, if the effect of the statement or
180+
// terminator. That way, if the effect of the statement or
181181
// terminator *does* introduce a new loan of the same
182182
// region, then setting that gen-bit will override any
183183
// potential kill introduced here.

compiler/rustc_mir/src/dataflow/impls/liveness.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::dataflow::{AnalysisDomain, Backward, GenKill, GenKillAnalysis};
88
///
99
/// This analysis considers references as being used only at the point of the
1010
/// borrow. In other words, this analysis does not track uses because of references that already
11-
/// exist. See [this `mir-datalow` test][flow-test] for an example. You almost never want to use
11+
/// exist. See [this `mir-dataflow` test][flow-test] for an example. You almost never want to use
1212
/// this analysis without also looking at the results of [`MaybeBorrowedLocals`].
1313
///
1414
/// [`MaybeBorrowedLocals`]: ../struct.MaybeBorrowedLocals.html
@@ -134,7 +134,7 @@ impl DefUse {
134134

135135
// `MutatingUseContext::Call` and `MutatingUseContext::Yield` indicate that this is the
136136
// destination place for a `Call` return or `Yield` resume respectively. Since this is
137-
// only a `Def` when the function returns succesfully, we handle this case separately
137+
// only a `Def` when the function returns successfully, we handle this case separately
138138
// in `call_return_effect` above.
139139
PlaceContext::MutatingUse(MutatingUseContext::Call | MutatingUseContext::Yield) => None,
140140

0 commit comments

Comments
 (0)