Skip to content

Commit 9d3a20d

Browse files
committed
Merge branch 'master' of github.com:chengchingwen/Pickle.jl
2 parents 8bf4460 + 1631854 commit 9d3a20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serializer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ stores(p, x) = sprint((io, x)->store(p, io, x), x)
1414
store(file::AbstractString, x; proto=DEFAULT_PROTO) = open(f->store(f, x; proto=proto), file, "w+")
1515
store(io::IO, x; proto=DEFAULT_PROTO) = store(Pickler(proto), io, x)
1616
function store(p::AbstractPickle, io::IO, @nospecialize(x))
17-
protocol(p) >= 2 && write_porotcol(p, io)
17+
protocol(p) >= 2 && write_protocol(p, io)
1818
save_object(p, io, x)
1919
write(io, OpCodes.STOP)
2020
return
2121
end
2222

23-
write_porotcol(p::AbstractPickle, io::IO) = write(io, OpCodes.PROTO) + write_uint1(io, protocol(p))
23+
write_protocol(p::AbstractPickle, io::IO) = write(io, OpCodes.PROTO) + write_uint1(io, protocol(p))
2424

2525
save_object(p::AbstractPickle, io::IO, x) = hasref(p.memo, x) ? save_get(p, io, x) : save(p, io, x)
2626

0 commit comments

Comments
 (0)