Rollup merge of #93560 - steffahn:a_typo, r=petrochenkov

Fix two incorrect "it's" (typos in comments)

Found one of these while reading the documentation online. The other came up because it's in the same file.
This commit is contained in:
Matthias Krüger
2022-02-02 07:11:09 +01:00
committed by GitHub

View File

@@ -1642,7 +1642,7 @@ pub enum FakeReadCause {
ForMatchedPlace(Option<DefId>), ForMatchedPlace(Option<DefId>),
/// A fake read of the RefWithinGuard version of a bind-by-value variable /// A fake read of the RefWithinGuard version of a bind-by-value variable
/// in a match guard to ensure that it's value hasn't change by the time /// in a match guard to ensure that its value hasn't change by the time
/// we create the OutsideGuard version. /// we create the OutsideGuard version.
ForGuardBinding, ForGuardBinding,
@@ -2939,7 +2939,7 @@ impl Location {
let mut visited = FxHashSet::default(); let mut visited = FxHashSet::default();
while let Some(block) = queue.pop() { while let Some(block) = queue.pop() {
// If we haven't visited this block before, then make sure we visit it's predecessors. // If we haven't visited this block before, then make sure we visit its predecessors.
if visited.insert(block) { if visited.insert(block) {
queue.extend(predecessors[block].iter().cloned()); queue.extend(predecessors[block].iter().cloned());
} else { } else {