Changes

5 bytes removed ,  20:41, 6 August 2021
m
Fix incorrect name in pair codec example
Line 166: Line 166:  
Codec.STRING.fieldOf("name").codec());
 
Codec.STRING.fieldOf("name").codec());
   −
JsonElement encodedPair = BOXED_INT_CODEC.encodeStart(JsonOps.INSTANCE, Pair.of(5, "cheese").result().get();
+
JsonElement encodedPair = PAIR_CODEC.encodeStart(JsonOps.INSTANCE, Pair.of(5, "cheese").result().get();
 
</syntaxhighlight>
 
</syntaxhighlight>
 
This codec serializes the above value to:
 
This codec serializes the above value to:
22

edits