From 0af79e7b8c50e80764e9833767967db038e3cbf1 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 27 Jan 2026 05:29:51 +0100 Subject: [PATCH] std.mem.readVarInt: Fix type name in doc comment (#31007) Code used `ReturnType`, comment used `T` (which is what is used in similar functions). Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31007 Co-authored-by: Robert Ancell Co-committed-by: Robert Ancell --- lib/std/mem.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/mem.zig b/lib/std/mem.zig index 437faa2eb65a983eef21eaf0e90eafe81c147ad8..1b109cdfa030394d732234950248ad43172905cf 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -1823,7 +1823,7 @@ test containsAtLeastScalar2 { } /// Reads an integer from memory with size equal to bytes.len. -/// T specifies the return type, which must be large enough to store +/// ReturnType specifies the return type, which must be large enough to store /// the result. pub fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) ReturnType { assert(@typeInfo(ReturnType).int.bits >= bytes.len * 8); -- 2.54.0