about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2014-01-20 11:16:24 +0100
committerFlavio Percoco <flaper87@gmail.com>2014-01-20 11:17:27 +0100
commit1089bfef608dc0f6d9efc57d8daa8da76db823a8 (patch)
tree94bf992b5215ba7781578169ee0e316b1990b651
parent290c29c24cee74b3ffbd6a9d330b09d9d330d508 (diff)
downloadrust-1089bfef608dc0f6d9efc57d8daa8da76db823a8.tar.gz
rust-1089bfef608dc0f6d9efc57d8daa8da76db823a8.zip
Fix documentation typos
-rw-r--r--src/librustc/middle/borrowck/doc.rs2
-rw-r--r--src/librustc/middle/moves.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/middle/borrowck/doc.rs b/src/librustc/middle/borrowck/doc.rs
index 286365f8c13..04ce2b5846c 100644
--- a/src/librustc/middle/borrowck/doc.rs
+++ b/src/librustc/middle/borrowck/doc.rs
@@ -179,7 +179,7 @@ checker uses a data flow propagation to compute the full set of loans
 in scope at each expression and then uses that set to decide whether
 that expression is legal.  Remember that the scope of loan is defined
 by its lifetime LT.  We sometimes say that a loan which is in-scope at
-a particular point is an "outstanding loan", aand the set of
+a particular point is an "outstanding loan", and the set of
 restrictions included in those loans as the "outstanding
 restrictions".
 
diff --git a/src/librustc/middle/moves.rs b/src/librustc/middle/moves.rs
index a6a9ff80c5b..e0146694881 100644
--- a/src/librustc/middle/moves.rs
+++ b/src/librustc/middle/moves.rs
@@ -38,7 +38,7 @@ case, the value is read, and the container (`x`) is also read.
 In the second case, `y`, `x.b` is being assigned which has type
 `~int`.  Because this type moves by default, that will be a move
 reference.  Whenever we move from a compound expression like `x.b` (or
-`x[b]` or `*x` or `{x)[b].c`, etc), this invalidates all containing
+`x[b]` or `*x` or `{x}[b].c`, etc), this invalidates all containing
 expressions since we do not currently permit "incomplete" variables
 where part of them has been moved and part has not.  In this case,
 this means that the reference to `x` is also a move.  We'll see later,
@@ -56,7 +56,7 @@ For each binding in a match or let pattern, we also compute a read
 or move designation.  A move binding means that the value will be
 moved from the value being matched.  As a result, the expression
 being matched (aka, the 'discriminant') is either moved or read
-depending on whethe the bindings move the value they bind to out of
+depending on whether the bindings move the value they bind to out of
 the discriminant.
 
 For examples, consider this match expression: