Skip to content

Commit 49d50e6

Browse files
authored
Rollup merge of #72214 - JOE1994:nitpicky, r=jonas-schievink
Minor fixes to comments * In 'src/librustc_ast_passes/node_count.rs' * typo fix ('rought' -> 'rough') * In 'src/librustc_middle/middle/region.rs', * fixed broken link to 'rustc-dev-guide' * typo fix ('aluded' -> 'alluded') Thank you for reviewing this PR :)
2 parents b96ceba + c919a6e commit 49d50e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_ast_passes/node_count.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Simply gives a rought count of the number of nodes in an AST.
1+
// Simply gives a rough count of the number of nodes in an AST.
22

33
use rustc_ast::ast::*;
44
use rustc_ast::visit::*;

src/librustc_middle/middle/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! For more information about how MIR-based region-checking works,
55
//! see the [rustc dev guide].
66
//!
7-
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/borrowck.html
7+
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/borrow_check.html
88
99
use crate::ich::{NodeIdHashingMode, StableHashingContext};
1010
use crate::ty::{self, DefIdTree, TyCtxt};
@@ -181,7 +181,7 @@ impl Scope {
181181
// `blk`; reuse span of `blk` and shift `lo`
182182
// forward to end of indexed statement.
183183
//
184-
// (This is the special case aluded to in the
184+
// (This is the special case alluded to in the
185185
// doc-comment for this method)
186186

187187
let stmt_span = blk.stmts[first_statement_index.index()].span;

0 commit comments

Comments
 (0)