about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2019-11-20 10:35:58 -0300
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-11-20 08:00:49 -0600
commit91056aaefa0bbe07bd81229489f8fac37021bfcd (patch)
treeff39d9dce40532cf1d6d8b45ffc271a99c81a6b7 /src/doc/rustc-dev-guide
parent8f1c6763d328b7b2b64c077b3216c5d452c7be04 (diff)
downloadrust-91056aaefa0bbe07bd81229489f8fac37021bfcd.tar.gz
rust-91056aaefa0bbe07bd81229489f8fac37021bfcd.zip
Minor mir chapter fixes
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/appendix/glossary.md2
-rw-r--r--src/doc/rustc-dev-guide/src/mir/optimizations.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/appendix/glossary.md b/src/doc/rustc-dev-guide/src/appendix/glossary.md
index d737e037f58..a773e352153 100644
--- a/src/doc/rustc-dev-guide/src/appendix/glossary.md
+++ b/src/doc/rustc-dev-guide/src/appendix/glossary.md
@@ -45,7 +45,7 @@ LTO                     |  Link-Time Optimizations. A set of optimizations offer
 memoize                 |  memoization is the process of storing the results of (pure) computations (such as pure function calls) to avoid having to repeat them in the future. This is typically a trade-off between execution speed and memory usage.
 MIR                     |  the Mid-level IR that is created after type-checking for use by borrowck and codegen ([see more](../mir/index.html))
 miri                    |  an interpreter for MIR used for constant evaluation ([see more](../miri.html))
-monomorphize            |  Monomorphization is the process of taking generic implementations of types and functions and producing instantiating them with concrete types. For example, in the code we might have `Vec<T>`, but in the final executable, we will have a copy of the `Vec` code for every concrete type used in the program (e.g. a copy for `Vec<usize>`, a copy for `Vec<MyStruct>`, etc).
+monomorphize            |  Monomorphization is the process of taking generic implementations of types and functions and instantiating them with concrete types. For example, in the code we might have `Vec<T>`, but in the final executable, we will have a copy of the `Vec` code for every concrete type used in the program (e.g. a copy for `Vec<usize>`, a copy for `Vec<MyStruct>`, etc).
 normalize               |  a general term for converting to a more canonical form, but in the case of rustc typically refers to [associated type normalization](../traits/associated-types.html#normalize)
 newtype                 |  a "newtype" is a wrapper around some other type (e.g., `struct Foo(T)` is a "newtype" for `T`). This is commonly used in Rust to give a stronger type for indices.
 NLL                     | [non-lexical lifetimes](../borrow_check/region_inference.html), an extension to Rust's borrowing system to make it be based on the control-flow graph.
diff --git a/src/doc/rustc-dev-guide/src/mir/optimizations.md b/src/doc/rustc-dev-guide/src/mir/optimizations.md
index cdbe7b4fa51..f3fdd52f316 100644
--- a/src/doc/rustc-dev-guide/src/mir/optimizations.md
+++ b/src/doc/rustc-dev-guide/src/mir/optimizations.md
@@ -39,7 +39,7 @@ implemented in its own submodule of the [`rustc_mir::transform`][trans] module.
 [trans]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/index.html 
 
 Some examples of passes are:
-- `CleanupNonCodegenStatements`: remove some of the info that is only need for
+- `CleanupNonCodegenStatements`: remove some of the info that is only needed for
   analyses, rather than codegen.
 - `ConstProp`: Does [constant propagation][constprop]