diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2025-08-13 09:33:02 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-13 01:43:52 -0700 |
| commit | b8124d9c0b01e8ac7cd0daf93a0ed018da5f2352 (patch) | |
| tree | 37ff66d809c8817ebd60871c4c296a269032b60f /src/Compilation.zig | |
| parent | 7abd62800cde3f42c0ef65126ed478a0c3d3d549 (diff) | |
| download | zig-b8124d9c0b01e8ac7cd0daf93a0ed018da5f2352.tar.gz zig-b8124d9c0b01e8ac7cd0daf93a0ed018da5f2352.zip | |
std.io.Writer.Allocating: rename getWritten() to written()
This "get" is useless noise and was copied from FixedBufferWriter.
Since this API has not yet landed in a release, now is a good time
to make the breaking change to fix this.
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 6f76d021a5..9e217f14f3 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1123,7 +1123,7 @@ pub const CObject = struct { var aw: Writer.Allocating = .init(eb.gpa); defer aw.deinit(); _ = file_reader.interface.streamDelimiterEnding(&aw.writer, '\n') catch break :source_line 0; - break :source_line try eb.addString(aw.getWritten()); + break :source_line try eb.addString(aw.written()); }; return .{ |
