File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ pub const RomuTrio = @import("Random/RomuTrio.zig");
29
29
pub const SplitMix64 = @import ("Random/SplitMix64.zig" );
30
30
pub const ziggurat = @import ("Random/ziggurat.zig" );
31
31
32
+ /// Any comparison of this field may result in illegal behavior, since it may be set to
33
+ /// `undefined` in cases where the random implementation does not have any associated
34
+ /// state.
32
35
ptr : * anyopaque ,
33
36
fillFn : * const fn (ptr : * anyopaque , buf : []u8 ) void ,
34
37
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ const builtin = @import("builtin");
10
10
pub const Error = error {OutOfMemory };
11
11
pub const Log2Align = math .Log2Int (usize );
12
12
13
- // The type erased pointer to the allocator implementation
13
+ /// The type erased pointer to the allocator implementation.
14
+ /// Any comparison of this field may result in illegal behavior, since it may be set to
15
+ /// `undefined` in cases where the allocator implementation does not have any associated
16
+ /// state.
14
17
ptr : * anyopaque ,
15
18
vtable : * const VTable ,
16
19
You can’t perform that action at this time.
0 commit comments