Fix some typos in docs and error messages
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Fri, 29 Sep 2017 19:36:55 +0000 (15:36 -0400)
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Fri, 29 Sep 2017 19:36:55 +0000 (15:36 -0400)
src/cargo/core/features.rs

index c73c1bc474bf8ebb7fd3673618c903ca4a65015d..4bfafc174ddae61618516f266361e6203e4a342b 100644 (file)
@@ -18,7 +18,7 @@
 //!    the `Manifest::feature_gate` function, but otherwise you may wish to
 //!    place the feature gate elsewhere in Cargo.
 //!
-//! 3. Do actually perform the feature gate, you'll want to have code that looks
+//! 3. To actually perform the feature gate, you'll want to have code that looks
 //!    like:
 //!
 //! ```rust,ignore
@@ -148,7 +148,7 @@ impl Features {
         };
 
         if *slot {
-            bail!("the cargo feature `{}` has already bene activated", feature);
+            bail!("the cargo feature `{}` has already been activated", feature);
         }
 
         match status {
@@ -200,7 +200,7 @@ impl Features {
     }
 }
 
-/// A parsed represetnation of all unstable flags that Cargo accepts.
+/// A parsed representation of all unstable flags that Cargo accepts.
 ///
 /// Cargo, like `rustc`, accepts a suite of `-Z` flags which are intended for
 /// gating unstable functionality to Cargo. These flags are only available on