Skip to content

Commit

Permalink
Fixed a bug in Path.subpath()
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Jul 10, 2023
1 parent f3d72df commit 1ec0c00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public P getName(int index) {

@Override
public P subpath(int beginIndex, int endIndex) {
return newPath(false, segments.subList(endIndex, endIndex));
return newPath(false, segments.subList(beginIndex, endIndex));
}

@Override
Expand Down

0 comments on commit 1ec0c00

Please sign in to comment.