diff options
| author | klensy <klensy@users.noreply.github.com> | 2021-04-19 15:57:08 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2021-04-19 15:57:08 +0300 |
| commit | f43ee8ebf696eec5a8a844629e4f7e910f9f0afd (patch) | |
| tree | bf829ad19f0402dd8c1148d5df4d6c1edce87923 /compiler/rustc_mir_build/src | |
| parent | 62652865b6029b4776a7c03efa13a37b15c9b953 (diff) | |
| download | rust-f43ee8ebf696eec5a8a844629e4f7e910f9f0afd.tar.gz rust-f43ee8ebf696eec5a8a844629e4f7e910f9f0afd.zip | |
fix few typos
Diffstat (limited to 'compiler/rustc_mir_build/src')
| -rw-r--r-- | compiler/rustc_mir_build/src/build/expr/as_place.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/build/expr/as_place.rs b/compiler/rustc_mir_build/src/build/expr/as_place.rs index 589a4467dca..1053890e618 100644 --- a/compiler/rustc_mir_build/src/build/expr/as_place.rs +++ b/compiler/rustc_mir_build/src/build/expr/as_place.rs @@ -80,7 +80,7 @@ crate struct PlaceBuilder<'tcx> { /// The projections are truncated to represent a path that might be captured by a /// closure/generator. This implies the vector returned from this function doesn't contain /// ProjectionElems `Downcast`, `ConstantIndex`, `Index`, or `Subslice` because those will never be -/// part of a path that is captued by a closure. We stop applying projections once we see the first +/// part of a path that is captured by a closure. We stop applying projections once we see the first /// projection that isn't captured by a closure. fn convert_to_hir_projections_and_truncate_for_capture<'tcx>( mir_projections: &[PlaceElem<'tcx>], @@ -578,7 +578,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { /// Lower a captured upvar. Note we might not know the actual capture index, /// so we create a place starting from `PlaceBase::Upvar`, which will be resolved - /// once all projections that allow us to indentify a capture have been applied. + /// once all projections that allow us to identify a capture have been applied. fn lower_captured_upvar( &mut self, block: BasicBlock, |
