Skip to content

Commit a2d5e9d

Browse files
committed
docs: Purge mentions of custom_serializers
1 parent ccdcd06 commit a2d5e9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ local build_function = function(x, cache, upvalue_id_cache)
143143
if not ok then
144144
error((
145145
"Function .%s is not `string.dump`-compatible; if it uses coroutines, use " ..
146-
"`ldump.custom_serializers`"
146+
"`ldump.serializer.handlers`"
147147
):format(table.concat(stack, ".")), 0)
148148
end
149149

@@ -216,7 +216,7 @@ local primitives = {
216216
}
217217

218218
handle_primitive = function(x, cache, upvalue_id_cache)
219-
do -- handle custom serializers
219+
do -- handle custom serialization
220220
local deserializer, source = ldump.serializer(x)
221221

222222
if deserializer then
@@ -240,7 +240,7 @@ handle_primitive = function(x, cache, upvalue_id_cache)
240240
if not primitives[xtype] then
241241
local message = (
242242
"ldump does not support serializing type %q of .%s; use `__serialize` metamethod or " ..
243-
"`ldump.custom_serializers` to define serialization"
243+
"`ldump.serializer.handlers` to define serialization"
244244
):format(xtype, table.concat(stack, "."))
245245

246246
if ldump.strict_mode then

tests/test_use_case.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe("docs/api.md", function()
100100
assert.are_equal(coroutine.resume(t.inner), coroutine.resume(t_copy.inner))
101101
end)
102102

103-
it("Using custom_serializers for serialization override", function()
103+
it("Using serializer.handlers for serialization override", function()
104104
local ldump = require("init")
105105

106106
local create_coroutine = function()

0 commit comments

Comments
 (0)