diff --git a/docs/src/tutorial/strings.rst b/docs/src/tutorial/strings.rst index 89a9b83c127d413e40d5b365933bca817de9fb1a..5d5b70b851e8e10e7c6c16785da28e86d26e2bad 100644 --- a/docs/src/tutorial/strings.rst +++ b/docs/src/tutorial/strings.rst @@ -456,7 +456,7 @@ and then copies its buffer into a new C++ string. For the other direction, efficient decoding support is available in Cython 0.17 and later:: - cdef string s = string('abcdefg') + cdef string s = string(b'abcdefg') ustring1 = s.decode('UTF-8') ustring2 = s[2:-2].decode('UTF-8')