| author | |
| committer | |
| log | 4041cc06d5a0327c6d6d7e0bdec8516df06cb5ba |
| tree | e8a804a5805f41ffb4ffc93098ce06144b88e3f6 |
| parent | b46f9945a81012ecd3ceca7152dd6faadf4815c9 |
See #21756 and #177042 files changed, 7 insertions(+), 1 deletions(-)
lib/std/Random.zig+3| ... | ... | @@ -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 |
lib/std/mem/Allocator.zig+4-1| ... | ... | @@ -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 |