From cd2eefb65acd8fcb8c9be7fe7f9528ca07c78be0 Mon Sep 17 00:00:00 2001 From: konstin Date: Sat, 20 Jul 2019 12:22:10 +0200 Subject: [PATCH] fixup --- src/types/bytearray.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/bytearray.rs b/src/types/bytearray.rs index 69298fd9..b71eee19 100644 --- a/src/types/bytearray.rs +++ b/src/types/bytearray.rs @@ -57,7 +57,7 @@ impl PyByteArray { /// # let py = gil.python(); /// # /// let bytearray = PyByteArray::new(py, b"Hello World."); - /// let mut copied_message = bytearray.data(); + /// let mut copied_message = bytearray.to_vec(); /// assert_eq!(b"Hello World.", copied_message.as_slice()); /// /// copied_message[11] = b'!';