This commit is contained in:
konstin 2019-07-20 12:22:10 +02:00
parent 1736568d28
commit cd2eefb65a
1 changed files with 1 additions and 1 deletions

View File

@ -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'!';