Skip to content

Commit

Permalink
fix deprecation (str.last_index -> str.index_last)
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonSolov committed Dec 19, 2023
1 parent e3c0e3b commit d7e9d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basename/basename.v
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn basename(name string, suffix string, is_zero bool) {
if name_noslash == '' {
out = '/'
} else {
if idx := name_noslash.last_index('/') {
if idx := name_noslash.index_last('/') {
out = name_noslash[idx + 1..]
} else {
out = name_noslash
Expand Down

0 comments on commit d7e9d4b

Please sign in to comment.