aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/std/Target/Query.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/Target/Query.zig b/lib/std/Target/Query.zig
index 1deff022cc..10130e03bb 100644
--- a/lib/std/Target/Query.zig
+++ b/lib/std/Target/Query.zig
@@ -460,7 +460,9 @@ pub fn zigTriple(self: Query, allocator: Allocator) Allocator.Error![]u8 {
try formatVersion(v, result.writer());
},
.windows => |v| {
- try result.writer().print("...{s}", .{v});
+ // This is counting on a custom format() function defined on `WindowsVersion`
+ // to add a prefix '.' and make there be a total of three dots.
+ try result.writer().print("..{s}", .{v});
},
}
}