mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.Io.Timestamp: when creating a Clock.Timestamp actually set .raw instead of the non-existant .nanoseconds
This commit is contained in:
parent
adc5a39de2
commit
032e3c9254
1 changed files with 1 additions and 1 deletions
|
|
@ -890,7 +890,7 @@ pub const Timestamp = struct {
|
|||
}
|
||||
|
||||
pub fn withClock(t: Timestamp, clock: Clock) Clock.Timestamp {
|
||||
return .{ .nanoseconds = t.nanoseconds, .clock = clock };
|
||||
return .{ .raw = t, .clock = clock };
|
||||
}
|
||||
|
||||
pub fn fromNanoseconds(x: i96) Timestamp {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue