From d08989840e245c76261cb00930db2369f468392e Mon Sep 17 00:00:00 2001 From: K4 Date: Sun, 13 Sep 2026 10:35:46 +0300 Subject: [PATCH] std.fs.path: update doc comment for `extension` resolves https://github.com/ziglang/zig/issues/20347 --- lib/std/fs/path.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/fs/path.zig b/lib/std/fs/path.zig index 199ed0f409e8993397c316df37c52464ff9c81dc..01d6f0236c1c2b9ade0034cf6d0f35435dd19f73 100644 --- a/lib/std/fs/path.zig +++ b/lib/std/fs/path.zig @@ -2046,7 +2046,7 @@ fn testRelativeWindows(from: []const u8, to: []const u8, expected_output: []cons } /// Searches for a file extension separated by a `.` and returns the string after that `.`. -/// Files that end or start with `.` and have no other `.` in their name +/// Files that start with `.` and have no other `.` in their name /// are considered to have no extension, in which case this returns "". /// Examples: /// - `"main.zig"` ⇒ `".zig"` -- 2.54.0