diff options
Diffstat (limited to 'src/memory.zig')
| -rw-r--r-- | src/memory.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memory.zig b/src/memory.zig index 7021a1bb..676793c2 100644 --- a/src/memory.zig +++ b/src/memory.zig @@ -344,9 +344,9 @@ pub fn dupeUnfilled(allocator: Allocator, bytes: []const u8) Allocator.Error![]u } /// Frees without the safe-build overwrite `free` does: text-sized buffers -/// freed on every edit, and a text's line index, made anew at every edit -/// too (and pinned by a replica's rollback copy, src/rollback.zig, which a -/// safe build's overwrite would spoil). +/// and line indexes, freed as an edit grows or replaces them (and kept by a +/// replica's rollback copy, src/rollback.zig, while it holds the core it +/// was taken over, which a safe build's overwrite would spoil). pub fn freeRaw(allocator: Allocator, items: anytype) void { const E = @typeInfo(@TypeOf(items)).pointer.child; const bytes = std.mem.sliceAsBytes(items); |
