diff options
| author | Corey Farwell <coreyf@rwell.org> | 2015-04-19 12:18:51 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2015-04-19 12:18:51 -0400 |
| commit | aaafb96abda632577b33d31318e75f3a48b3f91c (patch) | |
| tree | 33b23ab0a2bfaf1f7c2e6385c41fbc6b62d60123 /src/libstd | |
| parent | be41e9806747febb761d4d9ba85e937197db09af (diff) | |
| download | rust-aaafb96abda632577b33d31318e75f3a48b3f91c.tar.gz rust-aaafb96abda632577b33d31318e75f3a48b3f91c.zip | |
Fix typos in code comments
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index cb78fc56bf2..1ad1508ae2d 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -704,7 +704,7 @@ impl<'a> Components<'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 @@ impl<'a> Components<'a> { } } - // 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(); |
