| ... | ... | @@ -1243,7 +1243,7 @@ pub fn Deserializer(endian: builtin.Endian, is_packed: bool, comptime Error: typ |
| 1243 | 1243 | /// endianess, after which data will resume being written at the next byte boundary. |
| 1244 | 1244 | /// Types may implement a custom serialization routine with a |
| 1245 | 1245 | /// function named `serialize` in the form of: |
| 1246 | | /// pub fn serialize(self: *const Self, serializer: var) !void |
| 1246 | /// pub fn serialize(self: Self, serializer: var) !void |
| 1247 | 1247 | /// which will be called when the serializer is used to serialize that type. It will |
| 1248 | 1248 | /// pass a const pointer to the type instance to be serialized and a pointer |
| 1249 | 1249 | /// to the serializer struct. |