about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Gallagher <luke@hypergeometric.net>2015-04-16 17:18:29 +1000
committerLuke Gallagher <luke@hypergeometric.net>2015-04-16 17:18:29 +1000
commitc1f6d6a13633d71845a84ffbe3709057be4e437c (patch)
treeb79a4ddd88bed403e4a1bca7db37941b4855d7cc
parent288809c8f35d9b37f2e4f5c3ac168f56dbc3bbc4 (diff)
downloadrust-c1f6d6a13633d71845a84ffbe3709057be4e437c.tar.gz
rust-c1f6d6a13633d71845a84ffbe3709057be4e437c.zip
Fix some documentation typos
-rw-r--r--src/doc/reference.md6
-rw-r--r--src/libsyntax/feature_gate.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 0ed23dae9b5..3b3c4ea6412 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -2368,7 +2368,7 @@ The currently implemented features of the reference compiler are:
                     removed entirely for something more wholesome.
 
 * `custom_attribute` - Allows the usage of attributes unknown to the compiler
-                       so that new attributes can be added in a bacwards compatible
+                       so that new attributes can be added in a backwards compatible
                        manner (RFC 572).
 
 * `custom_derive` - Allows the use of `#[derive(Foo,Bar)]` as sugar for
@@ -2397,7 +2397,7 @@ The currently implemented features of the reference compiler are:
                  nasty hack that will certainly be removed.
 
 * `main` - Allows use of the `#[main]` attribute, which changes the entry point
-           into a Rust program. This capabiilty is subject to change.
+           into a Rust program. This capability is subject to change.
 
 * `macro_reexport` - Allows macros to be re-exported from one crate after being imported
                      from another. This feature was originally designed with the sole
@@ -2453,7 +2453,7 @@ The currently implemented features of the reference compiler are:
                     is unintuitive and suboptimal.
 
 * `start` - Allows use of the `#[start]` attribute, which changes the entry point
-            into a Rust program. This capabiilty, especially the signature for the
+            into a Rust program. This capability, especially the signature for the
             annotated function, is subject to change.
 
 * `struct_inherit` - Allows using struct inheritance, which is barely
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 659eb343232..d0975c76e93 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -10,7 +10,7 @@
 
 //! Feature gating
 //!
-//! This modules implements the gating necessary for preventing certain compiler
+//! This module implements the gating necessary for preventing certain compiler
 //! features from being used by default. This module will crawl a pre-expanded
 //! AST to ensure that there are no features which are used that are not
 //! enabled.