We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be41e98 commit aaafb96Copy full SHA for aaafb96
src/libstd/path.rs
@@ -704,7 +704,7 @@ impl<'a> Components<'a> {
704
(comp.len() + extra, self.parse_single_component(comp))
705
}
706
707
- // trim away repeated separators (i.e. emtpy components) on the left
+ // trim away repeated separators (i.e. empty components) on the left
708
fn trim_left(&mut self) {
709
while !self.path.is_empty() {
710
let (size, comp) = self.parse_next_component();
@@ -716,7 +716,7 @@ impl<'a> Components<'a> {
716
717
718
719
- // trim away repeated separators (i.e. emtpy components) on the right
+ // trim away repeated separators (i.e. empty components) on the right
720
fn trim_right(&mut self) {
721
while self.path.len() > self.len_before_body() {
722
let (size, comp) = self.parse_next_component_back();
0 commit comments