about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-15 01:57:24 +0200
committerGitHub <noreply@github.com>2020-05-15 01:57:24 +0200
commit49d50e6e9454cc1990ecdef9377541dbcdbf4864 (patch)
treea785ba060d2cc0a31e96b2a25c27387ecc93ebcf /src
parentb96ceba66bb256ac54d3be45f686273fa17feb9a (diff)
parentc919a6ea09108d3c45bcfb9e95c6289a04606f53 (diff)
downloadrust-49d50e6e9454cc1990ecdef9377541dbcdbf4864.tar.gz
rust-49d50e6e9454cc1990ecdef9377541dbcdbf4864.zip
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 :)
Diffstat (limited to 'src')
-rw-r--r--src/librustc_ast_passes/node_count.rs2
-rw-r--r--src/librustc_middle/middle/region.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_ast_passes/node_count.rs b/src/librustc_ast_passes/node_count.rs
index 3cf562b927e..34db59b1b45 100644
--- a/src/librustc_ast_passes/node_count.rs
+++ b/src/librustc_ast_passes/node_count.rs
@@ -1,4 +1,4 @@
-// Simply gives a rought count of the number of nodes in an AST.
+// Simply gives a rough count of the number of nodes in an AST.
 
 use rustc_ast::ast::*;
 use rustc_ast::visit::*;
diff --git a/src/librustc_middle/middle/region.rs b/src/librustc_middle/middle/region.rs
index c3eeea7662b..f02d8fe8ad6 100644
--- a/src/librustc_middle/middle/region.rs
+++ b/src/librustc_middle/middle/region.rs
@@ -4,7 +4,7 @@
 //! For more information about how MIR-based region-checking works,
 //! see the [rustc dev guide].
 //!
-//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/borrowck.html
+//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/borrow_check.html
 
 use crate::ich::{NodeIdHashingMode, StableHashingContext};
 use crate::ty::{self, DefIdTree, TyCtxt};
@@ -181,7 +181,7 @@ impl Scope {
                 // `blk`; reuse span of `blk` and shift `lo`
                 // forward to end of indexed statement.
                 //
-                // (This is the special case aluded to in the
+                // (This is the special case alluded to in the
                 // doc-comment for this method)
 
                 let stmt_span = blk.stmts[first_statement_index.index()].span;