std.io.Writer.Allocating: rename interface to writer

This commit is contained in:
Andrew Kelley
2025-07-01 09:41:41 -07:00
parent fc310ee7bc
commit fac5fe57be
8 changed files with 37 additions and 37 deletions

View File

@@ -941,7 +941,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?mem.Alig
try self.ensureUnusedCapacity(gpa, fmt.len);
var aw: std.io.Writer.Allocating = .fromArrayList(gpa, self);
defer self.* = aw.toArrayList();
return aw.interface.print(fmt, args) catch |err| switch (err) {
return aw.writer.print(fmt, args) catch |err| switch (err) {
error.WriteFailed => return error.OutOfMemory,
};
}