Update p09_read_binary_data_into_mutable_buffer.rst
correct an typo in line 37 and 39
This commit is contained in:
@@ -34,9 +34,9 @@
|
||||
>>> buf = read_into_buffer('sample.bin')
|
||||
>>> buf
|
||||
bytearray(b'Hello World')
|
||||
>>> buf[0:5] = b'Hallo'
|
||||
>>> buf[0:5] = b'Hello'
|
||||
>>> buf
|
||||
bytearray(b'Hallo World')
|
||||
bytearray(b'Hello World')
|
||||
>>> with open('newsample.bin', 'wb') as f:
|
||||
... f.write(buf)
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user