commit 1a8570403f070933842db7739e7139779b7e04a5 (tree)
parent 1188da926ff4cddd5818d85d45b087f6207dfef9
Author: tgschultz <tgschultz@gmail.com>
Date: Sun, 9 Dec 2018 20:59:51 -0600
Minor doc-comment fix.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/io.zig b/std/io.zig
@@ -1243,7 +1243,7 @@ pub fn Deserializer(endian: builtin.Endian, is_packed: bool, comptime Error: typ
/// endianess, after which data will resume being written at the next byte boundary.
/// Types may implement a custom serialization routine with a
/// function named `serialize` in the form of:
-/// pub fn serialize(self: *const Self, serializer: var) !void
+/// pub fn serialize(self: Self, serializer: var) !void
/// which will be called when the serializer is used to serialize that type. It will
/// pass a const pointer to the type instance to be serialized and a pointer
/// to the serializer struct.