| author | |
| committer | |
| log | 05fc4d34a93d1e8fd4a107cb17c9d4fd7ffc29bc |
| tree | 335a29b37ba374c1f3e25dea35f96ffe8ea0b8e7 |
| parent | edebe0586bd0cb73ef8492fd569e1c2fc7aca05b |
1 files changed, 5 insertions(+), 0 deletions(-)
lib/std/hash_map.zig+5| ... | ... | @@ -42,6 +42,11 @@ pub fn HashMap(comptime K: type, comptime V: type, comptime hash: fn (key: K) u3 |
| 42 | 42 | |
| 43 | 43 | const Self = @This(); |
| 44 | 44 | |
| 45 | /// A *KV is a mutable pointer into this HashMap's internal storage. | |
| 46 | /// Modifying the key is undefined behavior. | |
| 47 | /// Modifying the value is harmless. | |
| 48 | /// *KV pointers become invalid whenever this HashMap is modified, | |
| 49 | /// and then any access to the *KV is undefined behavior. | |
| 45 | 50 | pub const KV = struct { |
| 46 | 51 | key: K, |
| 47 | 52 | value: V, |