diff options
| author | Benjamin Feng <benjamin.feng@glassdoor.com> | 2020-03-06 16:59:21 -0600 |
|---|---|---|
| committer | Benjamin Feng <benjamin.feng@glassdoor.com> | 2020-03-12 10:41:09 -0500 |
| commit | 4aae55b4ccf44fa3c2c2a81a6a34f3c898dece30 (patch) | |
| tree | a4116c5259e3f39df939008f23ac66f65ce61194 /lib/std/buffer.zig | |
| parent | ed7f30e1cd0c00c82c511ad826fe8d8b60b2f57f (diff) | |
| download | zig-4aae55b4ccf44fa3c2c2a81a6a34f3c898dece30.tar.gz zig-4aae55b4ccf44fa3c2c2a81a6a34f3c898dece30.zip | |
Replace fmt with new fmtstream
Diffstat (limited to 'lib/std/buffer.zig')
| -rw-r--r-- | lib/std/buffer.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/buffer.zig b/lib/std/buffer.zig index 6d361bdb4a..cf028f104e 100644 --- a/lib/std/buffer.zig +++ b/lib/std/buffer.zig @@ -65,11 +65,11 @@ pub const Buffer = struct { } pub fn allocPrint(allocator: *Allocator, comptime format: []const u8, args: var) !Buffer { - const size = std.fmtstream.count(format, args) catch |err| switch (err) { + const size = std.fmt.count(format, args) catch |err| switch (err) { error.Overflow => return error.OutOfMemory, }; var self = try Buffer.initSize(allocator, size); - assert((std.fmtstream.bufPrint(self.list.items, format, args) catch unreachable).len == size); + assert((std.fmt.bufPrint(self.list.items, format, args) catch unreachable).len == size); return self; } |
