diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-06 16:32:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-06 16:32:23 -0800 |
| commit | d7d905696c3e3b0e2b8c691317cb696be940b9a3 (patch) | |
| tree | 3bdc251c196100d2bca29b14d38ded9f342ddaf1 /src/Compilation.zig | |
| parent | 76870a2265410dc8790b9383cf39610f4b33e3ee (diff) | |
| parent | d92ea56884c4cdc3a0cff8b6ed1e31f959ee0fa8 (diff) | |
| download | zig-d7d905696c3e3b0e2b8c691317cb696be940b9a3.tar.gz zig-d7d905696c3e3b0e2b8c691317cb696be940b9a3.zip | |
Merge pull request #7622 from tetsuo-cpp/array-hash-map-improvements
std: Support equivalent ArrayList operations in ArrayHashMap
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a2f4d07c98..e2213954ef 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -738,7 +738,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { } assert(mem.endsWith(u8, buf.items, ",")); buf.items[buf.items.len - 1] = 0; - buf.shrink(buf.items.len); + buf.shrinkAndFree(buf.items.len); break :blk buf.items[0 .. buf.items.len - 1 :0].ptr; } else null; |
