From 3d0e6fff254df319eee6e5284ec3b64ae34acb23 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 13 Apr 2016 11:48:10 +0200 Subject: [PATCH] typos --- docs/advanced.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced.rst b/docs/advanced.rst index bf0c6eb24..990cfd902 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -1190,7 +1190,7 @@ Pickling support Python's ``pickle`` module provides a powerful facility to serialize and de-serialize a Python object graph into a binary data stream. To pickle and -unpickle C++ classes using pybind11, two additional functions most be provided. +unpickle C++ classes using pybind11, two additional functions must be provided. Suppose the class in question has the following signature: .. code-block:: cpp @@ -1243,7 +1243,7 @@ An instance can now be pickled as follows: p = Pickleable("test_value") p.setExtra(15) - data = cPickle.dumps(p, -1) + data = pickle.dumps(p, -1) Note that only the cPickle module is supported on Python 2.7. It is also important to request usage of the highest protocol version using the ``-1``