Skip to content

Commit 3d0e6ff

Browse files
committed
typos
1 parent 1c329aa commit 3d0e6ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ Pickling support
11901190

11911191
Python's ``pickle`` module provides a powerful facility to serialize and
11921192
de-serialize a Python object graph into a binary data stream. To pickle and
1193-
unpickle C++ classes using pybind11, two additional functions most be provided.
1193+
unpickle C++ classes using pybind11, two additional functions must be provided.
11941194
Suppose the class in question has the following signature:
11951195

11961196
.. code-block:: cpp
@@ -1243,7 +1243,7 @@ An instance can now be pickled as follows:
12431243
12441244
p = Pickleable("test_value")
12451245
p.setExtra(15)
1246-
data = cPickle.dumps(p, -1)
1246+
data = pickle.dumps(p, -1)
12471247
12481248
Note that only the cPickle module is supported on Python 2.7. It is also
12491249
important to request usage of the highest protocol version using the ``-1``

0 commit comments

Comments
 (0)