aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json.zig
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2025-08-13 09:33:02 +0200
committerAndrew Kelley <andrew@ziglang.org>2025-08-13 01:43:52 -0700
commitb8124d9c0b01e8ac7cd0daf93a0ed018da5f2352 (patch)
tree37ff66d809c8817ebd60871c4c296a269032b60f /lib/std/json.zig
parent7abd62800cde3f42c0ef65126ed478a0c3d3d549 (diff)
downloadzig-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 'lib/std/json.zig')
-rw-r--r--lib/std/json.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig
index c7b7dcf19f..52388f38ea 100644
--- a/lib/std/json.zig
+++ b/lib/std/json.zig
@@ -57,7 +57,7 @@ test Stringify {
\\ "foo": 123
\\}
;
- try testing.expectEqualSlices(u8, expected, out.getWritten());
+ try testing.expectEqualSlices(u8, expected, out.written());
}
pub const ObjectMap = @import("json/dynamic.zig").ObjectMap;