about summary refs log tree commit diff
diff options
context:
space:
mode:
authorking6cong <king6cong@gmail.com>2017-01-22 15:45:06 +0800
committerking6cong <king6cong@gmail.com>2017-01-22 15:45:06 +0800
commitd59a2afe586f69a6cf2454a205303ee57378c016 (patch)
tree7fcb8427f8d2f95636b1b18c3b433b4fdbce6cc0
parente5b0829bb06969b69a82527253a393e5c500c324 (diff)
downloadrust-d59a2afe586f69a6cf2454a205303ee57378c016.tar.gz
rust-d59a2afe586f69a6cf2454a205303ee57378c016.zip
better comment wording
-rw-r--r--src/librustc/ty/trait_def.rs2
-rw-r--r--src/librustc_driver/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/trait_def.rs b/src/librustc/ty/trait_def.rs
index c6d862b23bd..1dc494ca277 100644
--- a/src/librustc/ty/trait_def.rs
+++ b/src/librustc/ty/trait_def.rs
@@ -26,7 +26,7 @@ pub struct TraitDef {
 
     /// If `true`, then this trait had the `#[rustc_paren_sugar]`
     /// attribute, indicating that it should be used with `Foo()`
-    /// sugar. This is a temporary thing -- eventually any trait wil
+    /// sugar. This is a temporary thing -- eventually any trait will
     /// be usable with the sugar (or without it).
     pub paren_sugar: bool,
 
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 0ecd12b3a90..ad2aefbb795 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -904,7 +904,7 @@ fn print_flag_list<T>(cmdline_opt: &str,
 /// should continue, returns a getopts::Matches object parsed from args,
 /// otherwise returns None.
 ///
-/// The compiler's handling of options is a little complication as it ties into
+/// The compiler's handling of options is a little complicated as it ties into
 /// our stability story, and it's even *more* complicated by historical
 /// accidents. The current intention of each compiler option is to have one of
 /// three modes: