fixup
This commit is contained in:
parent
1736568d28
commit
cd2eefb65a
|
@ -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'!';
|
||||
|
|
Loading…
Reference in New Issue