mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.Io.Timestamp: when creating a Clock.Timestamp actually set .raw instead of the non-existant .nanoseconds
This commit is contained in:
parent
be9649f4ea
commit
7ba6a5698f
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 {
|
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 {
|
pub fn fromNanoseconds(x: i96) Timestamp {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue