]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos in code comments
authorCorey Farwell <coreyf@rwell.org>
Sun, 19 Apr 2015 16:18:51 +0000 (12:18 -0400)
committerCorey Farwell <coreyf@rwell.org>
Sun, 19 Apr 2015 16:18:51 +0000 (12:18 -0400)
src/libstd/path.rs

index cb78fc56bf20c2b7ac5425fc5ddae341fd78a101..1ad1508ae2d070ca4ff3542350a040ac07605666 100644 (file)
@@ -704,7 +704,7 @@ fn parse_next_component_back(&self) -> (usize, Option<Component<'a>>) {
         (comp.len() + extra, self.parse_single_component(comp))
     }
 
-    // trim away repeated separators (i.e. emtpy components) on the left
+    // trim away repeated separators (i.e. empty components) on the left
     fn trim_left(&mut self) {
         while !self.path.is_empty() {
             let (size, comp) = self.parse_next_component();
@@ -716,7 +716,7 @@ fn trim_left(&mut self) {
         }
     }
 
-    // trim away repeated separators (i.e. emtpy components) on the right
+    // trim away repeated separators (i.e. empty components) on the right
     fn trim_right(&mut self) {
         while self.path.len() > self.len_before_body() {
             let (size, comp) = self.parse_next_component_back();