| author | |
| committer | |
| log | 0af79e7b8c50e80764e9833767967db038e3cbf1 |
| tree | cf11e01e896bb563796799a1f0c4b551aa37adb4 |
| parent | 951ab1b18bf43cafa8ef0b07892eeaf704551482 |
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 <robert.ancell@gmail.com>
Co-committed-by: Robert Ancell <robert.ancell@gmail.com>1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/mem.zig+1-1| ... | ... | @@ -1823,7 +1823,7 @@ test containsAtLeastScalar2 { |
| 1823 | 1823 | } |
| 1824 | 1824 | |
| 1825 | 1825 | /// Reads an integer from memory with size equal to bytes.len. |
| 1826 | /// T specifies the return type, which must be large enough to store | |
| 1826 | /// ReturnType specifies the return type, which must be large enough to store | |
| 1827 | 1827 | /// the result. |
| 1828 | 1828 | pub fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) ReturnType { |
| 1829 | 1829 | assert(@typeInfo(ReturnType).int.bits >= bytes.len * 8); |