Skip to content

Commit 6374054

Browse files
authored
Fix typos in doc comments
This commit fixes typos in the doc comments of 'librustc_mir/monomorphize/collector.rs'
1 parent 7058471 commit 6374054

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_mir/monomorphize/collector.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Mono Item Collection
22
//! ====================
33
//!
4-
//! This module is responsible for discovering all items that will contribute to
4+
//! This module is responsible for discovering all items that will contribute
55
//! to code generation of the crate. The important part here is that it not only
66
//! needs to find syntax-level items (functions, structs, etc) but also all
77
//! their monomorphized instantiations. Every non-generic, non-const function
@@ -79,7 +79,7 @@
7979
//! function or method call (represented by a CALL terminator in MIR). But
8080
//! calls are not the only thing that might introduce a reference between two
8181
//! function mono items, and as we will see below, they are just a
82-
//! specialized of the form described next, and consequently will don't get any
82+
//! specialized of the form described next, and consequently will not get any
8383
//! special treatment in the algorithm.
8484
//!
8585
//! #### Taking a reference to a function or method
@@ -158,7 +158,7 @@
158158
//! - Eager mode is meant to be used in conjunction with incremental compilation
159159
//! where a stable set of mono items is more important than a minimal
160160
//! one. Thus, eager mode will instantiate drop-glue for every drop-able type
161-
//! in the crate, even of no drop call for that type exists (yet). It will
161+
//! in the crate, even if no drop call for that type exists (yet). It will
162162
//! also instantiate default implementations of trait methods, something that
163163
//! otherwise is only done on demand.
164164
//!

0 commit comments

Comments
 (0)