| ... | @@ -2046,7 +2046,7 @@ fn testRelativeWindows(from: []const u8, to: []const u8, expected_output: []cons | ... | @@ -2046,7 +2046,7 @@ fn testRelativeWindows(from: []const u8, to: []const u8, expected_output: []cons |
| 2046 | } | 2046 | } |
| 2047 | | 2047 | |
| 2048 | /// Searches for a file extension separated by a `.` and returns the string after that `.`. | 2048 | /// Searches for a file extension separated by a `.` and returns the string after that `.`. |
| 2049 | /// Files that end or start with `.` and have no other `.` in their name | 2049 | /// Files that start with `.` and have no other `.` in their name |
| 2050 | /// are considered to have no extension, in which case this returns "". | 2050 | /// are considered to have no extension, in which case this returns "". |
| 2051 | /// Examples: | 2051 | /// Examples: |
| 2052 | /// - `"main.zig"` ⇒ `".zig"` | 2052 | /// - `"main.zig"` ⇒ `".zig"` |