Skip to content

Commit 1ac897a

Browse files
authored
fix Path.ri
1 parent ce0806c commit 1ac897a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/src/fs/Path.ri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public struct Path {
115115
}
116116

117117
public func file_name(path: string) -> string {
118-
return path.all_before_last_of("/");
118+
return path.all_after_last_of("/");
119119
}
120120

121121
/// Returns the extension of the file name (if any).

0 commit comments

Comments
 (0)