about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2020-08-26 13:19:07 +0200
committerJoshua Nelson <joshua@yottadb.com>2020-08-26 08:07:52 -0400
commit916ffd71032cd25579450caaf9f72bcf7f60d8b9 (patch)
tree0e80de1ed878261caddc2b8c25a0dc6ad848bf52 /src/doc/rustc-dev-guide
parent88f89f2c945c44da1c07f29286d93347fc6a9000 (diff)
downloadrust-916ffd71032cd25579450caaf9f72bcf7f60d8b9.tar.gz
rust-916ffd71032cd25579450caaf9f72bcf7f60d8b9.zip
nits
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/mir/construction.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/mir/construction.md b/src/doc/rustc-dev-guide/src/mir/construction.md
index 50545f7763e..010305556cf 100644
--- a/src/doc/rustc-dev-guide/src/mir/construction.md
+++ b/src/doc/rustc-dev-guide/src/mir/construction.md
@@ -13,7 +13,7 @@ list of items:
 
 The lowering is triggered by calling the [`mir_built`] query.
 There is an intermediate representation
-between [HIR] and [MIR] called the [THIR] that is only used during the lowering.
+between [HIR] and [MIR] called the [THIR] that is only used during lowering.
 [THIR] means "Typed HIR" and used to be called "HAIR (High-level Abstract IR)".
 The [THIR]'s most important feature is that the various adjustments (which happen
 without explicit syntax) like coercions, autoderef, autoref and overloaded method
@@ -30,8 +30,8 @@ without having to create an in-memory copy of the entire [HIR].
 the [THIR] expressions recursively.
 
 The lowering creates local variables for every argument as specified in the signature.
-Next it creates local variables for every binding specified (e.g. `(a, b): (i32, String)`)
-produces 3 bindings, one for the argument, and two for the bindings. Next it generates
+Next, it creates local variables for every binding specified (e.g. `(a, b): (i32, String)`)
+produces 3 bindings, one for the argument, and two for the bindings. Next, it generates
 field accesses that read the fields from the argument and writes the value to the binding
 variable.