Skip to content

Commit aaafb96

Browse files
committed
Fix typos in code comments
1 parent be41e98 commit aaafb96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ impl<'a> Components<'a> {
704704
(comp.len() + extra, self.parse_single_component(comp))
705705
}
706706

707-
// trim away repeated separators (i.e. emtpy components) on the left
707+
// trim away repeated separators (i.e. empty components) on the left
708708
fn trim_left(&mut self) {
709709
while !self.path.is_empty() {
710710
let (size, comp) = self.parse_next_component();
@@ -716,7 +716,7 @@ impl<'a> Components<'a> {
716716
}
717717
}
718718

719-
// trim away repeated separators (i.e. emtpy components) on the right
719+
// trim away repeated separators (i.e. empty components) on the right
720720
fn trim_right(&mut self) {
721721
while self.path.len() > self.len_before_body() {
722722
let (size, comp) = self.parse_next_component_back();

0 commit comments

Comments
 (0)