Fix custom encoder/decoder/formatter code example

TypeInfo is a struct, not a record anymore.